@@ -215,7 +215,7 @@ Item {
215215 tryCompare(ApplicationManager.findApplication(data.apps[data.focusTo]).session.surface, "activeFocus", true);
216216 }
217217
218− function test_minimizeApplicationHidesSurface(data) {
218+ function test_minimizeApplicationHidesSurface() {
219219 var dashApp = startApplication("unity8-dash");
220220
221221 var dashDelegate = findChild(desktopStage, "stageDelegate_unity8-dash");
@@ -225,7 +225,7 @@ Item {
225225 tryCompare(dashApp.session.surface, "visible", false);
226226 }
227227
228− function test_maximizeApplicationHidesSurfacesBehindIt(data) {
228+ function test_maximizeApplicationHidesSurfacesBehindIt() {
229229 var dashApp = startApplication("unity8-dash");
230230 var dialerApp = startApplication("dialer-app");
231231 var cameraApp = startApplication("camera-app");
@@ -248,23 +248,25 @@ Item {
248248 compare(cameraApp.session.surface.visible, true);
249249 }
250250
251− function test_applicationsBecomeVisibleWhenOccludingAppRemoved(data) {
251+ function test_applicationsBecomeVisibleWhenOccludingAppRemoved() {
252252 var dashApp = startApplication("unity8-dash");
253− var dialerApp = startApplication("dialer-app");
254− var cameraApp = startApplication("camera-app");
255− var galleryApp = startApplication("gallery-app");
256−
257253 var dashDelegate = findChild(desktopStage, "stageDelegate_unity8-dash");
258254 verify(dashDelegate);
255+
256+ var dialerApp = startApplication("dialer-app");
259257 var dialerDelegate = findChild(desktopStage, "stageDelegate_dialer-app");
260258 verify(dialerDelegate);
259+
260+ var cameraApp = startApplication("camera-app");
261261 var cameraDelegate = findChild(desktopStage, "stageDelegate_camera-app");
262262 verify(cameraDelegate);
263+ dialerDelegate.maximize();
264+
265+ var galleryApp = startApplication("gallery-app");
263266 var galleryDelegate = findChild(desktopStage, "stageDelegate_gallery-app");
264267 verify(galleryDelegate);
265−
266− dialerDelegate.maximize();
267268 galleryDelegate.maximize();
269+
268270 tryCompare(dialerDelegate, "visuallyMaximized", true);
269271 tryCompare(galleryDelegate, "visuallyMaximized", true);
270272