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_slider.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_slider.qml')
-rw-r--r-- | tests/auto/controls/data/tst_slider.qml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/controls/data/tst_slider.qml b/tests/auto/controls/data/tst_slider.qml index b6f60c55..88171da5 100644 --- a/tests/auto/controls/data/tst_slider.qml +++ b/tests/auto/controls/data/tst_slider.qml @@ -59,6 +59,7 @@ Item { slider.orientation = Qt.Vertical; verify(slider.height > slider.width) + slider.destroy() } function test_minimumvalue() { @@ -69,6 +70,7 @@ Item { slider.value = 2 compare(slider.minimumValue, 5) compare(slider.value, 5) + slider.destroy() } function test_maximumvalue() { @@ -79,6 +81,7 @@ Item { slider.value = 15 compare(slider.maximumValue, 10) compare(slider.value, 10) + slider.destroy() } function test_rightLeftKeyPressed() { @@ -94,6 +97,7 @@ Item { compare(slider.value, 1 + keyStep * 2) keyPress(Qt.Key_Left) compare(slider.value, 1 + keyStep) + slider.destroy() } function test_mouseWheel() { @@ -136,7 +140,7 @@ Item { slider.value = 0 mouseWheel(slider, 5, 5, 40 * ratio, 0) compare(slider.value, slider.maximumValue) - + slider.destroy() } function test_activeFocusOnPress(){ @@ -149,6 +153,7 @@ Item { verify(!control.activeFocus) mousePress(control, 30, 30) verify(control.activeFocus) + control.destroy() } } } |