on xenial help sign in
add a test
31c1392Lukáš Tinkl
tests/qmltests/Stage/tst_DesktopStage.qml+18
@@ -1013,5 +1013,23 @@ Item {
1013 expectFail("", "Hovering the window controls should be ignored when the menu is open");
1013 expectFail("", "Hovering the window controls should be ignored when the menu is open");
1014 tryCompare(closeButton, "containsMouse", true);
1014 tryCompare(closeButton, "containsMouse", true);
1015 }
1015 }
1016+
1017+ function test_windowControlsTouchInteractionWithMenu() {
1018+ var appDelegate = startApplication("gmail-webapp");
1019+
1020+ var wd = findChild(appDelegate, "appWindowDecoration");
1021+ var maxButton = findChild(wd, "maximizeWindowButton");
1022+ var menuBarLoader = findChild(wd, "menuBarLoader");
1023+ var menuNav = findInvisibleChild(menuBarLoader, "d");
1024+
1025+ // make the menubar active and visible, select first item
1026+ menuBarLoader.active = true;
1027+ menuNav.select(0);
1028+ tryCompare(menuBarLoader.item, "visible", true);
1029+
1030+ // verify the maximized button can still be tapped
1031+ tap(maxButton);
1032+ tryCompare(appDelegate, "state", "maximized");
1033+ }
1016 }
1034 }
1017}
1035}