@@ -955,5 +955,22 @@ Item {
955 expectFail("", "Double clicking a menu should not change the window below");
955 expectFail("", "Double clicking a menu should not change the window below");
956 tryCompareFunction(function() { return appDelegate1.windowState != previousWindowState; }, true);
956 tryCompareFunction(function() { return appDelegate1.windowState != previousWindowState; }, true);
959+ function test_openMenuEatsHoverOutsideIt() {
960+ var appDelegate = startApplication("gmail-webapp");
962+ var wd = findChild(appDelegate, "appWindowDecoration");
963+ var closeButton = findChild(wd, "closeWindowButton");
966+ var menuItem = findChild(appDelegate, "menuBar-item3");
968+ var menu = findChild(appDelegate, "menuBar-item3-menu");
969+ tryCompare(menu, "visible", true);
971+ mouseMove(closeButton, closeButton.width/2, closeButton.height/2);
972+ expectFail("", "Hovering the window controls should be ignored when the menu is open");
973+ tryCompare(closeButton, "containsMouse", true);