on xenial help sign in
Replace some waitForRendering with wait(0)

Makes the test much faster and actually what we want is bindings to propagate, not much rendering is happening Approved by: Lukáš Tinkl

commit971bc8a52501e1d89f0a94aefc1200f3ae38692d authorAlbert Astals Cid <albert.astals@canonical.com> dateWed 12 Aug 2015, 08:41 (11 years ago) parent4f9155ea32912c
1 file changed+3−3
tests/qmltests/tst_Shell.qml+3−3
tests/qmltests/tst_Shell.qml+3−3
@@ -1505,7 +1505,7 @@ Rectangle {
15051505 while (appRepeater.highlightedIndex != i && x <= 4000) {
15061506 x+=10;
15071507 mouseMove(shell, x, y)
1508− waitForRendering(shell)
1508+ wait(0); // spin the loop so bindings get evaluated
15091509 }
15101510 }
15111511
@@ -1536,7 +1536,7 @@ Rectangle {
15361536 while (appRepeater.highlightedIndex !== 2 && x <= 4000) {
15371537 x+=10;
15381538 mouseMove(shell, x, y)
1539− waitForRendering(shell)
1539+ wait(0); // spin the loop so bindings get evaluated
15401540 }
15411541 tryCompare(closeMouseArea, "enabled", true)
15421542
@@ -1582,7 +1582,7 @@ Rectangle {
15821582 while (appRepeater.highlightedIndex !== 2 && x <= 4000) {
15831583 x+=10;
15841584 mouseMove(shell, x, y)
1585− waitForRendering(shell)
1585+ wait(0); // spin the loop so bindings get evaluated
15861586 }
15871587 tryCompare(decoratedWindow, "highlightShown", true);
15881588