@@ -656,6 +656,23 @@ Item {
656 tryCompare(overlay, "visible", false);
656 tryCompare(overlay, "visible", false);
660+ function test_windowControlsOverlayMaximizeButtonReachable() {
661+ var facebookAppDelegate = startApplication("facebook-webapp");
662+ verify(facebookAppDelegate);
663+ var overlay = findChild(facebookAppDelegate, "windowControlsOverlay");
666+ multiTouchTap([0, 1, 2], facebookAppDelegate);
667+ tryCompare(overlay, "visible", true);
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);
659 function test_dashHasNoCloseButton() {
676 function test_dashHasNoCloseButton() {
660 var dashAppDelegate = startApplication("unity8-dash");
677 var dashAppDelegate = startApplication("unity8-dash");
661 verify(dashAppDelegate);
678 verify(dashAppDelegate);