From 9c46a34f79bc7af5cd43064559624fb4433f0ab3 Mon Sep 17 00:00:00 2001 From: Caroline Chao <caroline.chao@digia.com> Date: Wed, 23 Jan 2013 16:04:57 +0100 Subject: [PATCH] Tests: remove "wait" in cleanupTestCase For SpinBox and TableView testcases. This function has been copied from other tests but it was probably a hack to work around an old bug. This should not be needed so removing it. Change-Id: I0b9f6620fdc89a8f2125cf9bc9412cb45b21b500 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com> --- tests/auto/qtdesktop/data/tst_button.qml | 4 ---- tests/auto/qtdesktop/data/tst_shortcuts.qml | 4 ---- 2 files changed, 8 deletions(-) diff --git a/tests/auto/qtdesktop/data/tst_button.qml b/tests/auto/qtdesktop/data/tst_button.qml index 94e627a96..e971c5cc0 100644 --- a/tests/auto/qtdesktop/data/tst_button.qml +++ b/tests/auto/qtdesktop/data/tst_button.qml @@ -48,10 +48,6 @@ TestCase { width:400 height:400 - function cleanupTestCase() { - wait(100) //wait for a short while to make sure no leaked textures - } - function test_defaultbutton() { var tmp = Qt.createQmlObject('import QtDesktop 1.0; Button {id: button1}', testCase, ''); compare(tmp.defaultbutton, false); diff --git a/tests/auto/qtdesktop/data/tst_shortcuts.qml b/tests/auto/qtdesktop/data/tst_shortcuts.qml index 2b1ea40e7..522078677 100644 --- a/tests/auto/qtdesktop/data/tst_shortcuts.qml +++ b/tests/auto/qtdesktop/data/tst_shortcuts.qml @@ -65,10 +65,6 @@ TestCase { rootObject.forceActiveFocus(); } - function cleanupTestCase() { - wait(100) //wait for a short while to make sure no leaked textures - } - function test_shortcut_data() { return [ { key: Qt.Key_A, modifier: Qt.NoModifier, expected: "a pressed" }, -- GitLab