<script src=../media/media-file.js></script>
<script>
var video2 = document.getElementById('video2');
- // 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 {
- waitForEventTestAndEnd(document, 'webkitfullscreenchange', "video2.clientWidth==document.body.clientWidth");
- runWithKeyDown(function(){video2.webkitRequestFullScreen()});
- }
+ waitForEventTestAndEnd(document, 'webkitfullscreenchange', "video2.clientWidth==document.body.clientWidth");
+ runWithKeyDown(function(){video2.webkitRequestFullScreen()});
</script>
</body>