@@ -2910,5 +2910,28 @@ Rectangle {
29102910 tryCompare(topLevelSurfaceList.focusedWindow, "surface", appDelegate.surface);
29112911 tryCompare(topLevelSurfaceList.applicationAt(0), "appId", "dialer-app");
29122912 }
2913+
2914+ function test_touchMenuPosition_data() {
2915+ return [
2916+ { tag: "launcher locked", lockLauncher: true },
2917+ { tag: "launcher not locked", lockLauncher: false }
2918+ ];
2919+ }
2920+
2921+ function test_touchMenuPosition(data) {
2922+ loadShell("desktop");
2923+ shell.usageScenario = "desktop";
2924+ waitForRendering(shell);
2925+ swipeAwayGreeter();
2926+
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);
2932+ } else {
2933+ compare(panel.applicationMenus.x, 0);
2934+ }
2935+ }
29132936 }
29142937}