on xenial help sign in
Move from waitForRendering to wait(0)

Makes the test much faster and actually what we want is bindings to propagate, not much rendering is happening

commita32912cf3aa5a3a45a55c46240c66db3113a097f authorAlbert Astals Cid <albert.astals@canonical.com> dateThu 6 Aug 2015, 12:49 (11 years ago) parentaf2af67
1 file changed+3−3
tests/qmltests/tst_Shell.qml+3−3
tests/qmltests/tst_Shell.qml+3−3
@@ -1479,7 +1479,7 @@ Rectangle {
14791479 while (appRepeater.highlightedIndex != i && x <= 4000) {
14801480 x+=10;
14811481 mouseMove(shell, x, y)
1482− waitForRendering(shell)
1482+ wait(0); // spin the loop so bindings get evaluated
14831483 }
14841484 }
14851485
@@ -1510,7 +1510,7 @@ Rectangle {
15101510 while (appRepeater.highlightedIndex !== 2 && x <= 4000) {
15111511 x+=10;
15121512 mouseMove(shell, x, y)
1513− waitForRendering(shell)
1513+ wait(0); // spin the loop so bindings get evaluated
15141514 }
15151515 tryCompare(closeMouseArea, "enabled", true)
15161516
@@ -1556,7 +1556,7 @@ Rectangle {
15561556 while (appRepeater.highlightedIndex !== 2 && x <= 4000) {
15571557 x+=10;
15581558 mouseMove(shell, x, y)
1559− waitForRendering(shell)
1559+ wait(0); // spin the loop so bindings get evaluated
15601560 }
15611561 tryCompare(decoratedWindow, "highlightShown", true);
15621562