Use testRunner instead of layoutTestController in tests still found to be using layou...
[WebKit-https.git] / LayoutTests / fullscreen / full-screen-request.html
1 <body>
2 <script src="full-screen-test.js"></script>
3 <script>
4     // Bail out early if the full screen API is not enabled or is missing:
5     if (Element.prototype.webkitRequestFullScreen == undefined) {
6         logResult(false, "Element.prototype.webkitRequestFullScreen == undefined");
7         endTest();
8     } else {
9         waitForEventTestAndEnd(document, 'webkitfullscreenchange', "document.webkitIsFullScreen==true");
10         runWithKeyDown(function(){document.documentElement.webkitRequestFullScreen()});
11     }
12 </script>