@@ -1991,5 +1991,35 @@ Rectangle {
19911991 tryCompare(launcherPanel, "highlightIndex", -2);
19921992 tryCompare(ApplicationManager, "focusedApplicationId", "unity8-dash");
19931993 }
1994+
1995+ function test_longpressSuperOpensLauncher() {
1996+ loadShell("desktop");
1997+ var launcher = findChild(shell, "launcher");
1998+ var shortcutHint = findChild(findChild(launcher, "launcherDelegate0"), "shortcutHint")
1999+
2000+ compare(launcher.state, "");
2001+ keyPress(Qt.Key_Super_L);
2002+ tryCompare(launcher, "state", "visible");
2003+ tryCompare(shortcutHint, "visible", true);
2004+
2005+ keyRelease(Qt.Key_Super_L);
2006+ tryCompare(launcher, "state", "");
2007+ tryCompare(shortcutHint, "visible", false);
2008+ }
2009+
2010+ /* This isn't working yet. keyClick doesn't eat Qt.MetaModifier and GlobalShortcut doesn't
2011+ act on keyPress(Qt.Key_Super_L) + keyPress(Qt.Key_1)
2012+
2013+ function test_metaNumberLaunchesFromLauncher() {
2014+ loadShell("desktop");
2015+ var launcher = findChild(shell, "launcher");
2016+ var firstAppInLauncher = LauncherModel.get(0).appId;
2017+ var secondAppInLauncher = LauncherModel.get(1).appId;
2018+ waitForRendering(shell);
2019+
2020+ keyClick(Qt.MetaModifier|Qt.Key_1);
2021+ tryCompare(ApplicationManager, "focusedApplicationId", firstAppInLauncher);
2022+ }
2023+ */
19942024 }
19952025}