aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/controls/data/tst_tumbler.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/controls/data/tst_tumbler.qml')
-rw-r--r--tests/auto/controls/data/tst_tumbler.qml8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/auto/controls/data/tst_tumbler.qml b/tests/auto/controls/data/tst_tumbler.qml
index b3230ca4..01d5cdee 100644
--- a/tests/auto/controls/data/tst_tumbler.qml
+++ b/tests/auto/controls/data/tst_tumbler.qml
@@ -83,16 +83,10 @@ TestCase {
}
function cleanup() {
- var destroyed = false;
- cleanupItem.Component.destruction.connect(function() { destroyed = true; });
-
cleanupItem.destroy();
-
// Waiting until it's deleted before continuing makes debugging
// test failures much easier, because there aren't unrelated items hanging around.
- // TODO: Replace with tryVerify(!tumbler) in 5.8.
- while (!destroyed)
- wait(0)
+ tryVerify(function() { return !tumbler; });
}
function createTumbler(args) {