diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2018-06-28 11:20:30 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2018-07-03 10:17:06 +0000 |
commit | bbc106599334cb46e3aeaf9ee5b1b54435dc1fa6 (patch) | |
tree | cf37ca0c0688a1982595112e645596c047ce03d9 | |
parent | dabf5d2ea0774564f29bb756b895fc9a9975b129 (diff) |
tst_tumbler: replace loop with tryVerify()
'cause it's better.
Change-Id: I00a538013a10a7ff3b551b9f550427f898610dbb
Reviewed-by: Liang Qi <liang.qi@qt.io>
-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 49fd78cc..d668fac0 100644 --- a/tests/auto/controls/data/tst_tumbler.qml +++ b/tests/auto/controls/data/tst_tumbler.qml @@ -279,13 +279,7 @@ TestCase { tryCompare(tumbler, "currentIndex", data.currentIndex); tumblerView = findView(tumbler); - // TODO: replace once QTBUG-19708 is fixed. - for (var delay = 1000; delay >= 0; delay -= 50) { - if (tumblerView.currentItem) - break; - wait(50); - } - verify(tumblerView.currentItem); + tryVerify(function() { return tumblerView.currentItem }); compare(tumblerView.currentIndex, data.currentIndex); compare(tumblerView.currentItem.text, data.currentIndex.toString()); |