diff options
Diffstat (limited to 'tests/auto/controls/data/tst_frame.qml')
-rw-r--r-- | tests/auto/controls/data/tst_frame.qml | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/tests/auto/controls/data/tst_frame.qml b/tests/auto/controls/data/tst_frame.qml index c64b0048..f20df743 100644 --- a/tests/auto/controls/data/tst_frame.qml +++ b/tests/auto/controls/data/tst_frame.qml @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2015 The Qt Company Ltd. +** Copyright (C) 2016 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the test suite of the Qt Toolkit. @@ -90,49 +90,41 @@ TestCase { } function test_empty() { - var control = frame.createObject(testCase) + var control = createTemporaryObject(frame, testCase) verify(control) verify(control.contentItem) compare(control.contentWidth, 0) compare(control.contentHeight, 0) - - control.destroy() } function test_oneChild() { - var control = oneChildFrame.createObject(testCase) + var control = createTemporaryObject(oneChildFrame, 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 = twoChildrenFrame.createObject(testCase) + var control = createTemporaryObject(twoChildrenFrame, 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 = contentFrame.createObject(testCase) + var control = createTemporaryObject(contentFrame, testCase) verify(control) compare(control.contentWidth, 100) compare(control.contentHeight, 30) verify(control.implicitWidth > 100) verify(control.implicitHeight > 30) - - control.destroy() } } |