on xenial help sign in
Add test
1021326Michael Terry
tests/qmltests/tst_Shell.qml+13
@@ -1104,6 +1104,19 @@ Rectangle {
1104 compare(tutorialLeft, null); // should be destroyed with tutorial
1104 compare(tutorialLeft, null); // should be destroyed with tutorial
1105 }
1105 }
1106
1106
1107+ function test_tutorialPausedDuringGreeter(data) {
1108+ loadShell("phone");
1109+
1110+ var tutorial = findChild(shell, "tutorial");
1111+
1112+ AccountsService.demoEdges = true;
1113+ tryCompare(tutorial, "running", true);
1114+ tryCompare(tutorial, "paused", true);
1115+
1116+ swipeAwayGreeter();
1117+ tryCompare(tutorial, "paused", false);
1118+ }
1119+
1107 function test_tapOnRightEdgeReachesApplicationSurface() {
1120 function test_tapOnRightEdgeReachesApplicationSurface() {
1108 loadShell("phone");
1121 loadShell("phone");
1109 swipeAwayGreeter();
1122 swipeAwayGreeter();