diff options
Diffstat (limited to 'tests/auto/controls/data/tst_pane.qml')
-rw-r--r-- | tests/auto/controls/data/tst_pane.qml | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/controls/data/tst_pane.qml b/tests/auto/controls/data/tst_pane.qml index f495a159..0d7e6536 100644 --- a/tests/auto/controls/data/tst_pane.qml +++ b/tests/auto/controls/data/tst_pane.qml @@ -152,15 +152,13 @@ TestCase { } function test_implicitContentItem() { - var control = pane.createObject(testCase, {width: 100, height: 100}) + var control = createTemporaryObject(pane, 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() { |