Make wait in cleanup() wait for snapTo animation to have finished
Otherwise test fail randomly when running on slow machines (or under valgrind)
commit78626477ee76671d3817177f3fb109eb4289a389
authorAlbert Astals Cid <albert.astals@canonical.com>
dateFri 17 Jun 2016, 01:19 (10 years ago)
parent24f72a9ddabc9c
tests/qmltests/Stages/tst_PhoneStage.qml+1−1
@@ -348,7 +348,7 @@ Item {
348348
349349 // wait for PhoneStage to stabilize back into its initial state
350350 var spreadView = findChild(phoneStage, "spreadView");
351− while (spreadView.phase !== 0 || spreadView.contentX !== -spreadView.shift) {
351+ while (spreadView.phase !== 0 || spreadView.contentX !== -spreadView.shift || spreadView.selectedIndex != -1) {
352352 wait(50);
353353 }
354354 }