on xenial help sign in
Move from waitForRendering to wait(0)
a32912cAlbert Astals Cid
tests/qmltests/tst_Shell.qml+3−3
@@ -1479,7 +1479,7 @@ Rectangle {
1479 while (appRepeater.highlightedIndex != i && x <= 4000) {
1479 while (appRepeater.highlightedIndex != i && x <= 4000) {
1480 x+=10;
1480 x+=10;
1481 mouseMove(shell, x, y)
1481 mouseMove(shell, x, y)
1482− waitForRendering(shell)
1482+ wait(0); // spin the loop so bindings get evaluated
1483 }
1483 }
1484 }
1484 }
1485
1485
@@ -1510,7 +1510,7 @@ Rectangle {
1510 while (appRepeater.highlightedIndex !== 2 && x <= 4000) {
1510 while (appRepeater.highlightedIndex !== 2 && x <= 4000) {
1511 x+=10;
1511 x+=10;
1512 mouseMove(shell, x, y)
1512 mouseMove(shell, x, y)
1513− waitForRendering(shell)
1513+ wait(0); // spin the loop so bindings get evaluated
1514 }
1514 }
1515 tryCompare(closeMouseArea, "enabled", true)
1515 tryCompare(closeMouseArea, "enabled", true)
1516
1516
@@ -1556,7 +1556,7 @@ Rectangle {
1556 while (appRepeater.highlightedIndex !== 2 && x <= 4000) {
1556 while (appRepeater.highlightedIndex !== 2 && x <= 4000) {
1557 x+=10;
1557 x+=10;
1558 mouseMove(shell, x, y)
1558 mouseMove(shell, x, y)
1559− waitForRendering(shell)
1559+ wait(0); // spin the loop so bindings get evaluated
1560 }
1560 }
1561 tryCompare(decoratedWindow, "highlightShown", true);
1561 tryCompare(decoratedWindow, "highlightShown", true);
1562
1562