diff options
Diffstat (limited to 'tests/auto/controls/data/tst_pane.qml')
-rw-r--r-- | tests/auto/controls/data/tst_pane.qml | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/tests/auto/controls/data/tst_pane.qml b/tests/auto/controls/data/tst_pane.qml index ec188afb..0c1b54db 100644 --- a/tests/auto/controls/data/tst_pane.qml +++ b/tests/auto/controls/data/tst_pane.qml @@ -103,54 +103,46 @@ TestCase { } function test_empty() { - var control = pane.createObject(testCase) + var control = createTemporaryObject(pane, testCase) verify(control) verify(control.contentItem) compare(control.contentWidth, 0) compare(control.contentHeight, 0) - - control.destroy() } function test_oneChild() { - var control = oneChildPane.createObject(testCase) + var control = createTemporaryObject(oneChildPane, testCase) verify(control) compare(control.contentWidth, 100) compare(control.contentHeight, 30) verify(control.implicitWidth > 100) verify(control.implicitHeight > 30) - - control.destroy() } function test_twoChildren() { - var control = twoChildrenPane.createObject(testCase) + var control = createTemporaryObject(twoChildrenPane, testCase) verify(control) compare(control.contentWidth, 0) compare(control.contentHeight, 0) verify(control.implicitWidth > 0) verify(control.implicitHeight > 0) - - control.destroy() } function test_contentItem() { - var control = contentPane.createObject(testCase) + var control = createTemporaryObject(contentPane, testCase) verify(control) compare(control.contentWidth, 100) compare(control.contentHeight, 30) verify(control.implicitWidth > 100) verify(control.implicitHeight > 30) - - control.destroy() } function test_press() { - var control = pressPane.createObject(testCase) + var control = createTemporaryObject(pressPane, testCase) verify(control) compare(control.pressCount, 0) @@ -160,7 +152,5 @@ TestCase { control.children[0].enabled = false mouseClick(control) compare(control.pressCount, 1) - - control.destroy() } } |