@@ -955,5 +955,22 @@ Item {
955955 expectFail("", "Double clicking a menu should not change the window below");
956956 tryCompareFunction(function() { return appDelegate1.windowState != previousWindowState; }, true);
957957 }
958+
959+ function test_openMenuEatsHoverOutsideIt() {
960+ var appDelegate = startApplication("gmail-webapp");
961+
962+ var wd = findChild(appDelegate, "appWindowDecoration");
963+ var closeButton = findChild(wd, "closeWindowButton");
964+
965+ // Open menu
966+ var menuItem = findChild(appDelegate, "menuBar-item3");
967+ menuItem.show();
968+ var menu = findChild(appDelegate, "menuBar-item3-menu");
969+ tryCompare(menu, "visible", true);
970+
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);
974+ }
958975 }
959976}