2015-10-12 03:24:23 +03:00
|
|
|
<!DOCTYPE html>
|
2011-11-04 23:05:16 +04:00
|
|
|
<html>
|
2015-10-12 03:24:23 +03:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
</head>
|
|
|
|
<body onload="doRequestFullscreen()">
|
|
|
|
<script>
|
|
|
|
function doRequestFullscreen() {
|
|
|
|
function handler(evt) {
|
|
|
|
document.removeEventListener("mozfullscreenchange", handler);
|
|
|
|
document.removeEventListener("mozfullscreenerror", handler);
|
|
|
|
parent.is(evt.type, "mozfullscreenerror", "Request from " +
|
2015-10-12 03:24:23 +03:00
|
|
|
`document inside ${parent.testTargetName} should be denied`);
|
2015-10-12 03:24:23 +03:00
|
|
|
parent.continueTest();
|
|
|
|
}
|
|
|
|
parent.ok(!document.mozFullScreenEnabled, "Fullscreen " +
|
2015-10-12 03:24:23 +03:00
|
|
|
`should not be enabled in ${parent.testTargetName}`);
|
2015-10-12 03:24:23 +03:00
|
|
|
document.addEventListener("mozfullscreenchange", handler);
|
|
|
|
document.addEventListener("mozfullscreenerror", handler);
|
|
|
|
document.documentElement.mozRequestFullScreen();
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</body>
|
2011-11-04 23:05:16 +04:00
|
|
|
</html>
|