@@ -170,10 +170,11 @@ Row {
170170
171171 function test_leftEdgeDrag_data() {
172172 return [
173− {tag: "without launcher", revealLauncher: false, swipeLength: units.gu(27), appHides: true},
174− {tag: "with launcher", revealLauncher: true, swipeLength: units.gu(27), appHides: true},
175− {tag: "small swipe", revealLauncher: false, swipeLength: units.gu(25), appHides: false},
176− {tag: "long swipe", revealLauncher: false, swipeLength: units.gu(27), appHides: true}
173+ {tag: "without launcher", revealLauncher: false, swipeLength: units.gu(27), appHides: true, focusedApp: "dialer-app", launcherHides: true},
174+ {tag: "with launcher", revealLauncher: true, swipeLength: units.gu(27), appHides: true, focusedApp: "dialer-app", launcherHides: true},
175+ {tag: "small swipe", revealLauncher: false, swipeLength: units.gu(25), appHides: false, focusedApp: "dialer-app", launcherHides: false},
176+ {tag: "long swipe", revealLauncher: false, swipeLength: units.gu(27), appHides: true, focusedApp: "dialer-app", launcherHides: true},
177+ {tag: "long swipe", revealLauncher: false, swipeLength: units.gu(27), appHides: true, focusedApp: "unity8-dash", launcherHides: false}
177178 ];
178179 }
179180
@@ -181,16 +182,22 @@ Row {
181182 dragLauncherIntoView();
182183 tapOnAppIconInLauncher();
183184 waitUntilApplicationWindowIsFullyVisible();
185+ ApplicationManager.focusApplication(data.focusedApp)
186+ waitUntilApplicationWindowIsFullyVisible();
184187
185188 if (data.revealLauncher) {
186189 dragLauncherIntoView();
187190 }
188191
189192 swipeFromLeftEdge(data.swipeLength);
190− if (data.appHides)
193+ if (data.appHides) {
191194 waitUntilDashIsFocused();
192− else
195+ } else {
193196 waitUntilApplicationWindowIsFullyVisible();
197+ }
198+
199+ var launcher = findChild(shell, "launcherPanel");
200+ tryCompare(launcher, "x", data.launcherHides ? -launcher.width : 0)
194201 }
195202
196203 function test_suspend() {