@@ -203,6 +203,11 @@ Rectangle {
203203 signalName: "setCurrentScopeCalled"
204204 }
205205
206+ SignalSpy {
207+ id: resetAllSpy
208+ signalName: "resetAllCalled"
209+ }
210+
206211 SignalSpy {
207212 id: unlockAllModemsSpy
208213 target: Connectivity
@@ -250,6 +255,7 @@ Rectangle {
250255
251256 sessionSpy.target = findChild(shell, "greeter")
252257 dashCommunicatorSpy.target = findInvisibleChild(shell, "dashCommunicator");
258+ resetAllSpy.target = findInvisibleChild(shell, "dashCommunicator");
253259
254260 var launcher = findChild(shell, "launcher");
255261 launcherShowDashHomeSpy.target = launcher;
@@ -610,6 +616,34 @@ Rectangle {
610616 compare(dashCommunicatorSpy.signalArguments[0][0], 0);
611617 }
612618
619+ function test_leftSwipeOrBFBCausesResetAllEmission() {
620+ loadShell("phone");
621+ swipeAwayGreeter();
622+
623+ resetAllSpy.clear();
624+
625+ //Only long left edge swipe or BFB click on the launcher causes the signal emission
626+ dragLauncherIntoView();
627+ compare(resetAllSpy.count, 0);
628+
629+ //Click the dash icon on the launcher
630+ var launcher = findChild(shell, "launcher");
631+ var dashIcon = findChild(launcher, "dashItem");
632+ verify(dashIcon != undefined);
633+ mouseClick(dashIcon);
634+
635+ compare(resetAllSpy.count, 1);
636+
637+ resetAllSpy.clear();
638+
639+ //Long left edge swipe
640+ swipeFromLeftEdge(units.gu(27));
641+
642+ compare(resetAllSpy.count, 1);
643+
644+ resetAllSpy.clear();
645+ }
646+
613647 function test_showInputMethod() {
614648 loadShell("phone");
615649 swipeAwayGreeter();
@@ -1079,6 +1113,8 @@ Rectangle {
10791113 var dismissTimer = findInvisibleChild(launcher, "dismissTimer");
10801114 dismissTimer.interval = 60 * 60 * 1000;
10811115
1116+ launcherShowDashHomeSpy.clear();
1117+
10821118 dragLauncherIntoView();
10831119
10841120 // Emulate a tap with a finger, where the touch position drifts during the tap.