on xenial help sign in
fix test
30bedefMichael Zanetti
tests/qmltests/tst_Shell.qml+4−5
@@ -2007,9 +2007,6 @@ Rectangle {
2007 tryCompare(shortcutHint, "visible", false);
2007 tryCompare(shortcutHint, "visible", false);
2008 }
2008 }
2009
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() {
2010 function test_metaNumberLaunchesFromLauncher() {
2014 loadShell("desktop");
2011 loadShell("desktop");
2015 var launcher = findChild(shell, "launcher");
2012 var launcher = findChild(shell, "launcher");
@@ -2017,9 +2014,11 @@ Rectangle {
2017 var secondAppInLauncher = LauncherModel.get(1).appId;
2014 var secondAppInLauncher = LauncherModel.get(1).appId;
2018 waitForRendering(shell);
2015 waitForRendering(shell);
2019
2016
2020− keyClick(Qt.MetaModifier|Qt.Key_1);
2017+ keyClick(Qt.Key_1, Qt.MetaModifier);
2021 tryCompare(ApplicationManager, "focusedApplicationId", firstAppInLauncher);
2018 tryCompare(ApplicationManager, "focusedApplicationId", firstAppInLauncher);
2019+
2020+ keyClick(Qt.Key_2, Qt.MetaModifier);
2021+ tryCompare(ApplicationManager, "focusedApplicationId", secondAppInLauncher);
2022 }
2022 }
2023− */
2024 }
2023 }
2025}
2024}