Use testRunner instead of layoutTestController in tests still found to be using layou...
[WebKit-https.git] / LayoutTests / fullscreen / full-screen-remove-sibling.html
1 <body>
2 <script src="full-screen-test.js"></script>
3 <div id="one">
4     <div id="fullscreen"></div>
5     <div id="two"><span></span></div>
6 </div>
7
8 <script>
9 // Bail out early if the full screen API is not enabled or is missing:
10 if (Element.prototype.webkitRequestFullScreen == undefined) {
11     logResult(false, "Element.prototype.webkitRequestFullScreen == undefined");
12     endTest();
13 } else {
14     var callback;
15     waitForEvent(document, 'webkitfullscreenchange', function() {
16         var one = document.getElementById('one');
17         var two = document.getElementById('two');
18         one.removeChild(two);
19         endTest();
20     });
21
22     function goFullScreen() {
23         document.getElementById('fullscreen').webkitRequestFullScreen();
24     }
25     runWithKeyDown(goFullScreen);
26 }
27 </script>