@@ -2007,18 +2007,23 @@ Rectangle {
2007 tryCompare(shortcutHint, "visible", false);
2007 tryCompare(shortcutHint, "visible", false);
2010+ function test_metaNumberLaunchesFromLauncher_data() {
2012+ {tag: "Meta+1", key: Qt.Key_1, index: 0},
2013+ {tag: "Meta+2", key: Qt.Key_2, index: 1},
2014+ {tag: "Meta+4", key: Qt.Key_5, index: 4},
2015+ {tag: "Meta+0", key: Qt.Key_0, index: 9},
2010− function test_metaNumberLaunchesFromLauncher() {
2019+ function test_metaNumberLaunchesFromLauncher(data) {
2011 loadShell("desktop");
2020 loadShell("desktop");
2012 var launcher = findChild(shell, "launcher");
2021 var launcher = findChild(shell, "launcher");
2013− var firstAppInLauncher = LauncherModel.get(0).appId;
2014− var secondAppInLauncher = LauncherModel.get(1).appId;
2022+ var appId = LauncherModel.get(data.index).appId;
2015 waitForRendering(shell);
2023 waitForRendering(shell);
2017− keyClick(Qt.Key_1, Qt.MetaModifier);
2025+ keyClick(data.key, Qt.MetaModifier);
2018− tryCompare(ApplicationManager, "focusedApplicationId", firstAppInLauncher);
2026+ tryCompare(ApplicationManager, "focusedApplicationId", appId);
2020− keyClick(Qt.Key_2, Qt.MetaModifier);
2021− tryCompare(ApplicationManager, "focusedApplicationId", secondAppInLauncher);
2024 function test_altF1OpensLauncherForKeyboardNavigation() {
2029 function test_altF1OpensLauncherForKeyboardNavigation() {