+<!DOCTYPE html>
<script src="../resources/js-test.js"></script>
<script>
if (window.testRunner) {
}
function init() {
- // Bail out early if the full screen API is not enabled or is missing:
- if (Element.prototype.webkitRequestFullScreen == undefined) {
- alert("Fullscreen API not available.");
- } else {
- runWithKeyDown(goFullScreen);
- }
+ runWithKeyDown(goFullScreen);
}
function goFullScreen() {
}, 0);
}, 0);
element.webkitRequestFullScreen();
+ shouldNotBe("document.webkitFullscreenElement", "null");
}
</script>
<body onload="init()">
- <iframe webkitallowfullscreen src="resources/inner.html" id="block1"></iframe>
+ <iframe allowfullscreen src="resources/inner.html" id="block1"></iframe>
PASS
</body>