on xenial help sign in
Simplify test code
commit134d21e1adad9c7d2bcf5d149b9ebba49ff8d2da authorDaniel d'Andrada <daniel.dandrada@canonical.com> dateThu 22 Jan 2015, 05:57 (12 years ago) parentcd90ce0
1 file changed+1−2
tests/qmltests/tst_ShellWithPin.qml+1−2
tests/qmltests/tst_ShellWithPin.qml+1−2
@@ -517,8 +517,7 @@ Item {
517517 function test_shortLeftEdgeSwipeMakesLauncherStayVisible() {
518518 var greeter = testCase.findChild(shell, "greeter")
519519 greeter.show();
520− // wait until the animation has finished (ie, greeter is fully visible)
521− tryCompareFunction(function() { return greeter.mapToItem(shell, 0, 0).x === 0; }, true);
520+ tryCompare(greeter, "showProgress", 1);
522521
523522 var launcher = testCase.findChild(shell, "launcher")
524523 {