blob: 8180802de8c98c9d297a5cd125e7fd7666123678 [file] [log] [blame]
<script src="full-screen-test.js"></script>
<body>
Test that inserting a node before a full-screened element doesn't cause a crash.
<span><span id="toBeMadeFullScreen"></span></span>
</body>
<script>
// Use window.eventSender to fake a user-action, allowing full-screen.
document.addEventListener("keypress", function() {
toBeMadeFullScreen.webkitRequestFullScreen();
}, false);
eventSender.keyDown(" ", []);
document.addEventListener("webkitfullscreenchange", function() {
toBeMadeFullScreen.parentNode.insertBefore(document.createElement('div'), toBeMadeFullScreen);
setTimeout(endTest(), 0);
}, false);
</script>