blob: fc5865f1868730273cf7dedc0277b86409cf3764 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body style="-webkit-columns: 30;">
PASS.
<bdi>
<span style="margin-top: 1em;">WebKit didn't crash.
<script src="full-screen-test.js"></script>
<script>
if (Element.prototype.webkitRequestFullScreen == undefined) {
logResult(false, "Element.prototype.webkitRequestFullScreen == undefined");
endTest();
} else {
var fullscreenChanged = function(event)
{
callback(event)
};
waitForEventOnce(document, "webkitfullscreenchange", fullscreenChanged);
var span = document.getElementsByTagName('span')[0];
var spanEnteredFullScreen = function() {
runWithKeyDown(function() { document.documentElement.webkitRequestFullScreen(); });
setTimeout("endTest()", 0);
};
callback = spanEnteredFullScreen;
runWithKeyDown(function() { span.webkitRequestFullScreen(); });
}
</script>
</body>
</html>