@@ -2910,5 +2910,28 @@ Rectangle {
2910 tryCompare(topLevelSurfaceList.focusedWindow, "surface", appDelegate.surface);
2910 tryCompare(topLevelSurfaceList.focusedWindow, "surface", appDelegate.surface);
2911 tryCompare(topLevelSurfaceList.applicationAt(0), "appId", "dialer-app");
2911 tryCompare(topLevelSurfaceList.applicationAt(0), "appId", "dialer-app");
2914+ function test_touchMenuPosition_data() {
2916+ { tag: "launcher locked", lockLauncher: true },
2917+ { tag: "launcher not locked", lockLauncher: false }
2921+ function test_touchMenuPosition(data) {
2922+ loadShell("desktop");
2923+ shell.usageScenario = "desktop";
2924+ waitForRendering(shell);
2925+ swipeAwayGreeter();
2927+ var panel = findChild(shell, "panel");
2928+ var launcher = testCase.findChild(shell, "launcher");
2929+ launcher.lockedVisible = data.lockLauncher;
2930+ if (data.lockLauncher) {
2931+ compare(panel.applicationMenus.x, launcher.panelWidth);
2933+ compare(panel.applicationMenus.x, 0);