diff options
Diffstat (limited to 'tests/auto/controls/data/tst_pane.qml')
-rw-r--r-- | tests/auto/controls/data/tst_pane.qml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_pane.qml b/tests/auto/controls/data/tst_pane.qml index 231d3fa6..b33fc817 100644 --- a/tests/auto/controls/data/tst_pane.qml +++ b/tests/auto/controls/data/tst_pane.qml @@ -141,6 +141,18 @@ TestCase { verify(control.implicitHeight > 30) } + function test_implicitContentItem() { + var control = pane.createObject(testCase, {width: 100, height: 100}) + verify(control) + + compare(control.width, 100) + compare(control.height, 100) + compare(control.contentItem.width, control.availableWidth) + compare(control.contentItem.height, control.availableHeight) + + control.destroy() + } + function test_press() { var control = createTemporaryObject(pressPane, testCase) verify(control) |