@@ -739,22 +739,6 @@ Rectangle {
739 mockNotificationsModel.append(n)
739 mockNotificationsModel.append(n)
742− function test_ClickUbuntuIconInLauncherTakesToAppsAndResetSearchString() {
745− dragLauncherIntoView();
746− dashCommunicatorSpy.clear();
748− var launcher = findChild(shell, "launcher");
749− var dashIcon = findChild(launcher, "dashItem");
750− verify(dashIcon != undefined);
751− mouseClick(dashIcon);
753− tryCompare(ApplicationManager, "focusedApplicationId", "unity8-dash");
755− compare(dashCommunicatorSpy.count, 1);
758 function test_suspend() {
742 function test_suspend() {
759 loadShell("phone");
743 loadShell("phone");
760 swipeAwayGreeter();
744 swipeAwayGreeter();
@@ -1372,47 +1356,6 @@ Rectangle {
1372 tryCompare(stage, "state", "spread");
1356 tryCompare(stage, "state", "spread");
1375− function test_tapUbuntuIconInLauncherOverAppSpread() {
1376− launcherShowDashHomeSpy.clear();
1378− loadShell("phone");
1379− swipeAwayGreeter();
1381− waitUntilFocusedApplicationIsShowingItsSurface();
1383− swipeFromRightEdgeToShowAppSpread();
1385− var launcher = findChild(shell, "launcher");
1387− dragLauncherIntoView();
1389− // Emulate a tap with a finger, where the touch position drifts during the tap.
1390− // This is to test the touch ownership changes. The tap is happening on the button
1391− // area but then drifting into the left edge drag area. This test makes sure
1392− // the touch ownership stays with the button and doesn't move over to the
1393− // left edge drag area.
1395− var buttonShowDashHome = findChild(launcher, "buttonShowDashHome");
1396− touchFlick(buttonShowDashHome,
1397− buttonShowDashHome.width * 0.2, /* startPos.x */
1398− buttonShowDashHome.height * 0.8, /* startPos.y */
1399− buttonShowDashHome.width * 0.8, /* endPos.x */
1400− buttonShowDashHome.height * 0.2 /* endPos.y */);
1403− compare(launcherShowDashHomeSpy.count, 1);
1405− // check that the stage has left spread mode.
1407− var stage = findChild(shell, "stage");
1408− tryCompare(stage, "state", "staged");
1411− // check that the launcher got dismissed
1412− var launcherPanel = findChild(shell, "launcherPanel");
1413− tryCompare(launcherPanel, "x", -launcherPanel.width);
1416 function test_physicalHomeKeyPressDoesNothingWithActiveGreeter() {
1359 function test_physicalHomeKeyPressDoesNothingWithActiveGreeter() {
1417 loadShell("phone");
1360 loadShell("phone");
@@ -1839,7 +1782,7 @@ Rectangle {
1839 loadDesktopShellWithApps()
1782 loadDesktopShellWithApps()
1840 var launcher = findChild(shell, "launcher");
1783 var launcher = findChild(shell, "launcher");
1841 var stage = findChild(shell, "stage");
1784 var stage = findChild(shell, "stage");
1842− var bfb = findChild(launcher, "buttonShowDashHome");
1785+ var app1 = findChild(launcher, "launcherDelegate0");
1844 GSettingsController.setAutohideLauncher(!data.launcherLocked);
1787 GSettingsController.setAutohideLauncher(!data.launcherLocked);
1845 waitForRendering(shell);
1788 waitForRendering(shell);
@@ -1852,17 +1795,17 @@ Rectangle {
1852 if (!data.launcherLocked) {
1795 if (!data.launcherLocked) {
1853 revealLauncherByEdgePushWithMouse();
1796 revealLauncherByEdgePushWithMouse();
1854 tryCompare(launcher, "x", 0);
1797 tryCompare(launcher, "x", 0);
1855− mouseMove(bfb, bfb.width / 2, bfb.height / 2)
1798+ mouseMove(app1, app1.width / 2, app1.height / 2)
1856 waitForRendering(shell)
1799 waitForRendering(shell)
1859− mouseClick(bfb, bfb.width / 2, bfb.height / 2)
1802+ mouseClick(app1, app1.width / 2, app1.height / 2)
1860 if (!data.launcherLocked) {
1803 if (!data.launcherLocked) {
1861 tryCompare(launcher, "state", "")
1804 tryCompare(launcher, "state", "")
1863 tryCompare(stage, "state", "windowed")
1806 tryCompare(stage, "state", "windowed")
1865− tryCompare(ApplicationManager, "focusedApplicationId", "unity8-dash")
1808+ tryCompare(ApplicationManager, "focusedApplicationId", "dialer-app")
1867 keyRelease(Qt.Key_Alt);
1810 keyRelease(Qt.Key_Alt);
@@ -2185,10 +2128,8 @@ Rectangle {
2185 tryCompare(launcher, "state", "visible");
2128 tryCompare(launcher, "state", "visible");
2186 tryCompare(launcherPanel, "highlightIndex", -1);
2129 tryCompare(launcherPanel, "highlightIndex", -1);
2187 keyRelease(Qt.Key_Super_L, Qt.MetaModifier);
2130 keyRelease(Qt.Key_Super_L, Qt.MetaModifier);
2188− tryCompare(launcher, "state", data.launcherLocked ? "visible" : "");
2131+ tryCompare(launcher, "state", "drawer");
2189 tryCompare(launcherPanel, "highlightIndex", -2);
2132 tryCompare(launcherPanel, "highlightIndex", -2);
2190− tryCompare(ApplicationManager, "focusedApplicationId", "unity8-dash");
2191− tryCompare(stage, "focus", true)
2194 function test_longpressSuperOpensLauncherAndShortcutsOverlay() {
2135 function test_longpressSuperOpensLauncherAndShortcutsOverlay() {