@@ -535,5 +535,30 @@ Item {
535 // verify the drop shadow is gone
535 // verify the drop shadow is gone
536 verify(PanelState.dropShadow == false);
536 verify(PanelState.dropShadow == false);
539+ function test_threeFingerTapShowsWindowControls_data() {
541+ { tag: "1 finger", touchIds: [0], result: false },
542+ { tag: "2 finger", touchIds: [0, 1], result: false },
543+ { tag: "3 finger", touchIds: [0, 1, 2], result: true },
544+ { tag: "4 finger", touchIds: [0, 1, 2, 3], result: false },
548+ function test_threeFingerTapShowsWindowControls(data) {
549+ var facebookApp = startApplication("facebook-webapp");
550+ var facebookAppDelegate = findChild(desktopStage, "appDelegate_facebook-webapp");
551+ verify(facebookAppDelegate);
552+ var overlay = findChild(facebookAppDelegate, "windowControlsOverlay");
555+ multiTouchTap(data.touchIds, facebookAppDelegate);
556+ tryCompare(overlay, "visible", data.result);
558+ if (data.result) { // if shown, try to hide it by clicking outside
559+ mouseClick(desktopStage);
560+ tryCompare(overlay, "visible", false);