@@ -2933,5 +2933,35 @@ Rectangle {
2933 compare(panel.applicationMenus.x, 0);
2933 compare(panel.applicationMenus.x, 0);
2937+ function test_touchMenuHidesOnLauncherAppDrawer_data() {
2939+ { tag: "launcher locked", lockLauncher: true },
2940+ { tag: "launcher not locked", lockLauncher: false }
2944+ function test_touchMenuHidesOnLauncherAppDrawer(data) {
2945+ loadShell("desktop");
2946+ shell.usageScenario = "desktop";
2947+ waitForRendering(shell);
2948+ swipeAwayGreeter();
2950+ var panel = findChild(shell, "panel");
2951+ var launcher = testCase.findChild(shell, "launcher");
2952+ launcher.lockedVisible = data.lockLauncher;
2954+ if (data.lockLauncher) {
2955+ panel.applicationMenus.show();
2956+ tryCompare(panel.applicationMenus, "fullyOpened", true);
2957+ launcher.openDrawer();
2959+ tryCompare(launcher, "shown", false);
2960+ panel.applicationMenus.show();
2961+ tryCompare(panel.applicationMenus, "fullyOpened", true);
2962+ launcher.switchToNextState("visible");
2964+ tryCompare(panel.applicationMenus, "fullyClosed", true);