2 <video id="video" width="300" controls></video>
3 <script src="full-screen-test.js"></script>
4 <script src=../media/media-file.js></script>
6 setSrcById("video", findMediaFile("video", "../media/content/test"));
7 var video = document.getElementById('video');
8 // Bail out early if the full screen API is not enabled or is missing:
9 if (Element.prototype.webkitRequestFullScreen == undefined) {
10 logResult(false, "Element.prototype.webkitRequestFullScreen == undefined");
13 waitForEventTestAndEnd(document, 'webkitfullscreenchange', "video.clientWidth==document.body.clientWidth");
14 runWithKeyDown(function(){video.webkitRequestFullScreen()});