@@ -689,6 +689,22 @@ Item {
689689 tryCompare(overlay, "visible", false);
690690 }
691691 }
692+
693+ function test_windowControlsOverlayMaximizeButtonReachable() {
694+ var facebookAppDelegate = startApplication("facebook-webapp");
695+ verify(facebookAppDelegate);
696+ var overlay = findChild(facebookAppDelegate, "windowControlsOverlay");
697+ verify(overlay);
698+
699+ multiTouchTap([0, 1, 2], facebookAppDelegate);
700+ tryCompare(overlay, "visible", true);
701+
702+ var maxButton = findChild(facebookAppDelegate, "maximizeWindowButton");
703+ tryCompare(maxButton, "visible", true);
704+ mouseClick(maxButton);
705+ tryCompare(facebookAppDelegate, "maximized", true);
706+ }
707+
692708 function test_dashHasNoCloseButton() {
693709 var dashAppDelegate = startApplication("unity8-dash");
694710 verify(dashAppDelegate);