@@ -2933,5 +2933,35 @@ Rectangle {
29332933 compare(panel.applicationMenus.x, 0);
29342934 }
29352935 }
2936+
2937+ function test_touchMenuHidesOnLauncherAppDrawer_data() {
2938+ return [
2939+ { tag: "launcher locked", lockLauncher: true },
2940+ { tag: "launcher not locked", lockLauncher: false }
2941+ ];
2942+ }
2943+
2944+ function test_touchMenuHidesOnLauncherAppDrawer(data) {
2945+ loadShell("desktop");
2946+ shell.usageScenario = "desktop";
2947+ waitForRendering(shell);
2948+ swipeAwayGreeter();
2949+
2950+ var panel = findChild(shell, "panel");
2951+ var launcher = testCase.findChild(shell, "launcher");
2952+ launcher.lockedVisible = data.lockLauncher;
2953+
2954+ if (data.lockLauncher) {
2955+ panel.applicationMenus.show();
2956+ tryCompare(panel.applicationMenus, "fullyOpened", true);
2957+ launcher.openDrawer();
2958+ } else {
2959+ tryCompare(launcher, "shown", false);
2960+ panel.applicationMenus.show();
2961+ tryCompare(panel.applicationMenus, "fullyOpened", true);
2962+ launcher.switchToNextState("visible");
2963+ }
2964+ tryCompare(panel.applicationMenus, "fullyClosed", true);
2965+ }
29362966 }
29372967}