@@ -535,5 +535,30 @@ Item {
535535 // verify the drop shadow is gone
536536 verify(PanelState.dropShadow == false);
537537 }
538+
539+ function test_threeFingerTapShowsWindowControls_data() {
540+ return [
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 },
545+ ];
546+ }
547+
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");
553+ verify(overlay);
554+
555+ multiTouchTap(data.touchIds, facebookAppDelegate);
556+ tryCompare(overlay, "visible", data.result);
557+
558+ if (data.result) { // if shown, try to hide it by clicking outside
559+ mouseClick(desktopStage);
560+ tryCompare(overlay, "visible", false);
561+ }
562+ }
538563 }
539564}