diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-31 13:59:21 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-31 13:59:55 +0200 |
commit | 43691a15b332193341884e0bb40d24601fe123fe (patch) | |
tree | 3dda294162c51802ee166f858d924abc54b333cb /tools/qa | |
parent | 489dbb311dc8645765885a432cc8bf42543a2867 (diff) |
tdf#93794 - spin buttons not rendered in gtk2/gtk3
for penance, introduce a unit test
Change-Id: I2c40285732be665e179c477e6e7603aa6f8be5d7
Diffstat (limited to 'tools/qa')
-rw-r--r-- | tools/qa/cppunit/test_rectangle.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/qa/cppunit/test_rectangle.cxx b/tools/qa/cppunit/test_rectangle.cxx index 29d04c83b3e3..4f3fff8afa34 100644 --- a/tools/qa/cppunit/test_rectangle.cxx +++ b/tools/qa/cppunit/test_rectangle.cxx @@ -49,6 +49,11 @@ void Test::test_rectangle() CPPUNIT_ASSERT_EQUAL(long(1), aRect.GetWidth()); CPPUNIT_ASSERT_EQUAL(long(1), aRect.GetHeight()); + + aRect.setX(12); + CPPUNIT_ASSERT_EQUAL(long(1), aRect.GetHeight()); + aRect.setY(12); + CPPUNIT_ASSERT_EQUAL(long(1), aRect.GetWidth()); } } |