@@ -203,6 +203,11 @@ Rectangle {
203 signalName: "setCurrentScopeCalled"
203 signalName: "setCurrentScopeCalled"
208+ signalName: "resetAllCalled"
206 SignalSpy {
211 SignalSpy {
207 id: unlockAllModemsSpy
212 id: unlockAllModemsSpy
208 target: Connectivity
213 target: Connectivity
@@ -250,6 +255,7 @@ Rectangle {
251 sessionSpy.target = findChild(shell, "greeter")
256 sessionSpy.target = findChild(shell, "greeter")
252 dashCommunicatorSpy.target = findInvisibleChild(shell, "dashCommunicator");
257 dashCommunicatorSpy.target = findInvisibleChild(shell, "dashCommunicator");
258+ resetAllSpy.target = findInvisibleChild(shell, "dashCommunicator");
254 var launcher = findChild(shell, "launcher");
260 var launcher = findChild(shell, "launcher");
255 launcherShowDashHomeSpy.target = launcher;
261 launcherShowDashHomeSpy.target = launcher;
@@ -610,6 +616,34 @@ Rectangle {
610 compare(dashCommunicatorSpy.signalArguments[0][0], 0);
616 compare(dashCommunicatorSpy.signalArguments[0][0], 0);
619+ function test_leftSwipeOrBFBCausesResetAllEmission() {
623+ resetAllSpy.clear();
625+ //Only long left edge swipe or BFB click on the launcher causes the signal emission
626+ dragLauncherIntoView();
627+ compare(resetAllSpy.count, 0);
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);
635+ compare(resetAllSpy.count, 1);
637+ resetAllSpy.clear();
639+ //Long left edge swipe
640+ swipeFromLeftEdge(units.gu(27));
642+ compare(resetAllSpy.count, 1);
644+ resetAllSpy.clear();
613 function test_showInputMethod() {
647 function test_showInputMethod() {
614 loadShell("phone");
648 loadShell("phone");
615 swipeAwayGreeter();
649 swipeAwayGreeter();
@@ -1079,6 +1113,8 @@ Rectangle {
1079 var dismissTimer = findInvisibleChild(launcher, "dismissTimer");
1113 var dismissTimer = findInvisibleChild(launcher, "dismissTimer");
1080 dismissTimer.interval = 60 * 60 * 1000;
1114 dismissTimer.interval = 60 * 60 * 1000;
1116+ launcherShowDashHomeSpy.clear();
1082 dragLauncherIntoView();
1118 dragLauncherIntoView();
1084 // Emulate a tap with a finger, where the touch position drifts during the tap.
1120 // Emulate a tap with a finger, where the touch position drifts during the tap.