on xenial help sign in
Replace some waitForRendering with wait(0)
971bc8aAlbert Astals Cid
tests/qmltests/tst_Shell.qml+3−3
@@ -1505,7 +1505,7 @@ Rectangle {
1505 while (appRepeater.highlightedIndex != i && x <= 4000) {
1505 while (appRepeater.highlightedIndex != i && x <= 4000) {
1506 x+=10;
1506 x+=10;
1507 mouseMove(shell, x, y)
1507 mouseMove(shell, x, y)
1508− waitForRendering(shell)
1508+ wait(0); // spin the loop so bindings get evaluated
1509 }
1509 }
1510 }
1510 }
1511
1511
@@ -1536,7 +1536,7 @@ Rectangle {
1536 while (appRepeater.highlightedIndex !== 2 && x <= 4000) {
1536 while (appRepeater.highlightedIndex !== 2 && x <= 4000) {
1537 x+=10;
1537 x+=10;
1538 mouseMove(shell, x, y)
1538 mouseMove(shell, x, y)
1539− waitForRendering(shell)
1539+ wait(0); // spin the loop so bindings get evaluated
1540 }
1540 }
1541 tryCompare(closeMouseArea, "enabled", true)
1541 tryCompare(closeMouseArea, "enabled", true)
1542
1542
@@ -1582,7 +1582,7 @@ Rectangle {
1582 while (appRepeater.highlightedIndex !== 2 && x <= 4000) {
1582 while (appRepeater.highlightedIndex !== 2 && x <= 4000) {
1583 x+=10;
1583 x+=10;
1584 mouseMove(shell, x, y)
1584 mouseMove(shell, x, y)
1585− waitForRendering(shell)
1585+ wait(0); // spin the loop so bindings get evaluated
1586 }
1586 }
1587 tryCompare(decoratedWindow, "highlightShown", true);
1587 tryCompare(decoratedWindow, "highlightShown", true);
1588
1588