Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fullscreen / full-screen-twice.html
blob4abe318076fa4efee023d9c76044d5ba62ad1d50
1 <body>
2 <script src="full-screen-test.js"></script>
3 <span></span>
4 <script>
5 var span = document.getElementsByTagName("span")[0];
7 var spanEnteredFullScreen = function() {
8 testExpected("document.webkitCurrentFullScreenElement", span);
9 waitForEventAndEnd(document, "webkitfullscreenerror");
10 runWithKeyDown(function(){document.documentElement.webkitRequestFullScreen()});
13 waitForEvent(document, "webkitfullscreenchange", spanEnteredFullScreen);
14 runWithKeyDown(function(){span.webkitRequestFullScreen()});
15 </script>