| <body> |
| <script src="full-screen-test.js"></script> |
| <div id="one"> |
| <div id="fullscreen"></div> |
| <div id="two"><span></span></div> |
| </div> |
| |
| <script> |
| // Bail out early if the full screen API is not enabled or is missing: |
| if (Element.prototype.webkitRequestFullScreen == undefined) { |
| logResult(false, "Element.prototype.webkitRequestFullScreen == undefined"); |
| endTest(); |
| } else { |
| var callback; |
| waitForEvent(document, 'webkitfullscreenchange', function() { |
| var one = document.getElementById('one'); |
| var two = document.getElementById('two'); |
| one.removeChild(two); |
| endTest(); |
| }); |
| |
| function goFullScreen() { |
| document.getElementById('fullscreen').webkitRequestFullScreen(); |
| } |
| runWithKeyDown(goFullScreen); |
| } |
| </script> |