@@ -93,6 +93,7 @@ Item {
9393 return;
9494
9595 AccountsService.demoEdges = false;
96+ AccountsService.demoEdgesCompleted = [];
9697 AccountsService.demoEdges = true;
9798 }
9899 }
@@ -114,8 +115,9 @@ Item {
114115 tryCompare(shell, "enabled", true); // enabled by greeter when ready
115116
116117 AccountsService.demoEdges = false;
118+ AccountsService.demoEdgesCompleted = [];
117119 AccountsService.demoEdges = true;
118− swipeAwayGreeter();
120+ //swipeAwayGreeter();
119121 }
120122
121123 function cleanup() {
@@ -163,6 +165,37 @@ Item {
163165 waitForRendering(greeter);
164166 }
165167
168+ function test_longPressDismissesTutorialPage() {
169+ var tutorialLeft = findChild(shell, "tutorialLeft");
170+
171+ verify(tutorialLeft.shown);
172+ compare(AccountsService.demoEdgesCompleted, []);
173+
174+ mousePress(tutorialLeft);
175+ wait(1000);
176+ mouseRelease(tutorialLeft);
177+
178+ tryCompare(tutorialLeft, "shown", false);
179+ tryCompare(AccountsService, "demoEdgesCompleted", ["left"]);
180+ }
181+
182+ function test_tutorialLeftEdges() {
183+ var tutorial = findChild(shell, "tutorial");
184+ var tutorialLeft = findChild(tutorial, "tutorialLeft");
185+ var launcher = findChild(shell, "launcher");
186+ var stage = findChild(shell, "stage");
187+ var panel = findChild(shell, "panel");
188+
189+ verify(tutorial.running);
190+ verify(tutorial.launcherEnabled);
191+ verify(!tutorial.spreadEnabled);
192+ verify(!tutorial.panelEnabled);
193+ verify(tutorialLeft.shown);
194+ verify(launcher.available);
195+ verify(!stage.spreadEnabled);
196+ verify(!panel.indicators.available);
197+ }
198+
166199 function waitForPage(name) {
167200 waitForRendering(findChild(shell, name));
168201 var page = findChild(shell, name);
@@ -259,11 +292,11 @@ Item {
259292 return null;
260293 }
261294
262− function test_walkthrough() {
295+ function disabled_test_walkthrough() {
263296 goToPage(null);
264297 }
265298
266− function test_skipOnDesktop() {
299+ function disabled_test_skipOnDesktop() {
267300 var tutorial = findChild(shell, "tutorial");
268301 tryCompare(tutorial, "active", true);
269302 tryCompare(tutorial, "running", true);
@@ -273,7 +306,7 @@ Item {
273306 tryCompare(tutorial, "running", false);
274307 }
275308
276− function test_launcherShortDrag() {
309+ function disabled_test_launcherShortDrag() {
277310 // goToPage does a normal launcher pull. But here we want to test
278311 // just barely pulling the launcher out and letting go (i.e. not
279312 // triggering the "progress" property of Launcher).
@@ -293,7 +326,7 @@ Item {
293326 waitForPage("tutorialLeftFinish");
294327 }
295328
296− function test_launcherLongDrag() {
329+ function disabled_test_launcherLongDrag() {
297330 // goToPage does a normal launcher pull. But here we want to test
298331 // a full pull across the page.
299332
@@ -310,7 +343,7 @@ Item {
310343 tryCompare(errorTitleLabel, "opacity", 1); // show error
311344 }
312345
313− function test_launcherDragBack() {
346+ function disabled_test_launcherDragBack() {
314347 // goToPage does a full launcher pull. But here we test pulling
315348 // all the way out, then dragging back into place.
316349
@@ -321,7 +354,7 @@ Item {
321354 tryCompare(left, "shown", true); // and we should still be on left
322355 }
323356
324− function test_launcherNoDragGap() {
357+ function disabled_test_launcherNoDragGap() {
325358 // See bug 1454882, where if you dragged the launcher while it was
326359 // visible, you could pull it further than the edge of the screen.
327360
@@ -351,7 +384,7 @@ Item {
351384 tryCompare(teaseAnimation, "running", true);
352385 }
353386
354− function test_spread() {
387+ function disabled_test_spread() {
355388 // Unfortunately, most of what we want to test of the spread is
356389 // "did it render correctly?" but that's hard to test. So instead,
357390 // just poke and prod it a little bit to see if some of the values
@@ -375,7 +408,7 @@ Item {
375408 tryCompare(screenshotImage, "visible", true);
376409 }
377410
378− function test_bottomShortDrag() {
411+ function disabled_test_bottomShortDrag() {
379412 var bottom = goToPage("tutorialBottom");
380413
381414 touchFlick(shell, halfWidth, shell.height, halfWidth, shell.height * 0.8);
@@ -387,7 +420,7 @@ Item {
387420 tryCompare(errorTitleLabel, "opacity", 1); // show error
388421 }
389422
390− function test_interrupted() {
423+ function disabled_test_interrupted() {
391424 goToPage("tutorialLeft");
392425 ApplicationManager.startApplication("dialer-app");
393426 checkFinished();