blob: 0a97a97a78a9f34b68d820cb92343996d2af9aac [file] [log] [blame]
<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>