diff options
author | Caroline Chao <caroline.chao@digia.com> | 2013-04-09 08:26:46 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-11 11:12:56 +0200 |
commit | 6b910dcbb51f0e03143dd1fc10b17fb396898df9 (patch) | |
tree | 84d3d0ae891be55fd4bc1a3cc16673dde3a9297c /tests/auto/controls/data/tst_tabview.qml | |
parent | 7a20567396d74aae386a5a588f24e5c26c3aab0f (diff) | |
download | qtquickcontrols-6b910dcbb51f0e03143dd1fc10b17fb396898df9.tar.gz |
Tests: Destroy created components at the end of the tests functions
To ensure the components don't interfere with other functions.
Change-Id: Ie22311471021175d23ae47c9e3a1ec603e803f2c
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Diffstat (limited to 'tests/auto/controls/data/tst_tabview.qml')
-rw-r--r-- | tests/auto/controls/data/tst_tabview.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_tabview.qml b/tests/auto/controls/data/tst_tabview.qml index 7bf9a00f..897565f1 100644 --- a/tests/auto/controls/data/tst_tabview.qml +++ b/tests/auto/controls/data/tst_tabview.qml @@ -50,11 +50,13 @@ TestCase { function test_createTabView() { var tabView = Qt.createQmlObject('import QtQuick.Controls 1.0; TabView {}', testCase, ''); + tabView.destroy() } function test_repeater() { var tabView = Qt.createQmlObject('import QtQuick 2.1; import QtQuick.Controls 1.0; TabView { Repeater { model: 3; Tab { } } }', testCase, ''); compare(tabView.count, 3) + tabView.destroy() } Component { @@ -71,6 +73,7 @@ TestCase { verify(tabView.tabAt(2).item == undefined) tabView.currentIndex = 1 verify(tabView.tabAt(2).item !== undefined) + tabView.destroy() } @@ -114,6 +117,7 @@ TestCase { tabView.removeTab(0) compare(tabView.count, 0) + tabView.destroy() } } |