diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-11-25 14:26:31 +0100 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-11-25 14:26:37 +0100 |
commit | 22769ac6a7667bf1d2d5b5e6421a15e4f6aadce1 (patch) | |
tree | dc76832e65fae17b99089d9cf7b41ef87aad1e7e /tests/auto/controls/data/tst_tumbler.qml | |
parent | eba5b547e7f1c3817d172936293e03535225f8ee (diff) | |
parent | ac99683595e27b4157f9fd397fefa378955e275c (diff) |
Merge remote-tracking branch 'origin/5.8' into dev
Change-Id: If528b9f4e502c50e0cd76df75404e257232f0d18
Diffstat (limited to 'tests/auto/controls/data/tst_tumbler.qml')
-rw-r--r-- | tests/auto/controls/data/tst_tumbler.qml | 8 |
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 8fde5e8c..cde319ea 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) { |