@@ -656,6 +656,23 @@ Item {
656656 tryCompare(overlay, "visible", false);
657657 }
658658 }
659+
660+ function test_windowControlsOverlayMaximizeButtonReachable() {
661+ var facebookAppDelegate = startApplication("facebook-webapp");
662+ verify(facebookAppDelegate);
663+ var overlay = findChild(facebookAppDelegate, "windowControlsOverlay");
664+ verify(overlay);
665+
666+ multiTouchTap([0, 1, 2], facebookAppDelegate);
667+ tryCompare(overlay, "visible", true);
668+
669+ var maxButton = findChild(facebookAppDelegate, "maximizeWindowButton");
670+ tryCompare(maxButton, "visible", true);
671+ wait(700); // there's a lot of behaviors on different decoration elements, make sure they're all settled
672+ mouseClick(maxButton);
673+ tryCompare(facebookAppDelegate, "maximized", true);
674+ }
675+
659676 function test_dashHasNoCloseButton() {
660677 var dashAppDelegate = startApplication("unity8-dash");
661678 verify(dashAppDelegate);