Clobbering window.console is not cool
[WebKit-https.git] / LayoutTests / fullscreen / full-screen-inline-split-crash.html
1 <script src="full-screen-test.js"></script>
2 <body>
3     Test that inserting a node before a full-screened element doesn't cause a crash.
4     <span><span id="toBeMadeFullScreen"></span></span>
5 </body>
6 <script>
7
8 // Use window.eventSender to fake a user-action, allowing full-screen.
9 document.addEventListener("keypress", function() {
10     toBeMadeFullScreen.webkitRequestFullScreen();
11 }, false);
12 eventSender.keyDown(" ", []);
13
14 document.addEventListener("webkitfullscreenchange", function() {
15     toBeMadeFullScreen.parentNode.insertBefore(document.createElement('div'), toBeMadeFullScreen);
16     setTimeout(endTest(), 0);
17 }, false);
18 </script>