@@ -980,6 +980,11 @@ Rectangle {
980 function test_launchLandscapeOnlyAppOverPortraitOnlyDashThenSwitchToDash() {
980 function test_launchLandscapeOnlyAppOverPortraitOnlyDashThenSwitchToDash() {
981 loadShell("mako");
981 loadShell("mako");
983+ var dashSurfaceId = topLevelSurfaceList.nextId;
984+ var dashApp = ApplicationManager.startApplication("unity8-dash");
986+ waitUntilAppWindowIsFullyLoaded(dashSurfaceId);
983 // starts as portrait, as unity8-dash is portrait only
988 // starts as portrait, as unity8-dash is portrait only
984 tryCompare(shell, "transformRotationAngle", 0);
989 tryCompare(shell, "transformRotationAngle", 0);
@@ -999,7 +1004,10 @@ Rectangle {
999 var rotationStates = findInvisibleChild(orientedShell, "rotationStates");
1004 var rotationStates = findInvisibleChild(orientedShell, "rotationStates");
1000 waitUntilTransitionsEnd(rotationStates);
1005 waitUntilTransitionsEnd(rotationStates);
1002− performLeftEdgeSwipeToSwitchToDash();
1007+ performLeftEdgeSwipe();
1009+ // should have switched to dash
1010+ tryCompare(ApplicationManager, "focusedApplicationId", "unity8-dash");
1004 // Should be back to portrait
1012 // Should be back to portrait
1005 tryCompare(shell, "transformRotationAngle", 0);
1013 tryCompare(shell, "transformRotationAngle", 0);
@@ -1391,7 +1399,7 @@ Rectangle {
1391 waitUntilTransitionsEnd(rotationStates);
1399 waitUntilTransitionsEnd(rotationStates);
1394− function performLeftEdgeSwipeToSwitchToDash() {
1402+ function performLeftEdgeSwipe() {
1395 var swipeLength = shell.width * 0.7;
1403 var swipeLength = shell.width * 0.7;
1397 var touchStartX = 1;
1405 var touchStartX = 1;
@@ -1399,8 +1407,6 @@ Rectangle {
1399 touchFlick(shell,
1407 touchFlick(shell,
1400 touchStartX, touchStartY,
1408 touchStartX, touchStartY,
1401 touchStartX + swipeLength, touchStartY);
1409 touchStartX + swipeLength, touchStartY);
1403− tryCompare(ApplicationManager, "focusedApplicationId", "unity8-dash");
1406 function performEdgeSwipeToSwitchToPreviousApp() {
1412 function performEdgeSwipeToSwitchToPreviousApp() {