818706e108ddc172d5d4231f37b6fdeb52151bf8
[WebKit-https.git] / LayoutTests / fullscreen / video-specified-size.html
1 <body>
2     <video id="video" width="300" controls></video>
3     <script src="full-screen-test.js"></script>
4     <script src=../media/media-file.js></script>
5     <script>
6         setSrcById("video", findMediaFile("video", "../media/content/test"));
7         var video = document.getElementById('video');
8
9         // Bail out early if the full screen API is not enabled or is missing:
10         if (Element.prototype.webkitRequestFullScreen == undefined) {
11             logResult(false, "Element.prototype.webkitRequestFullScreen == undefined");
12             endTest();
13         } else {
14             waitForEventTestAndEnd(document, 'webkitfullscreenchange', "video.clientWidth==document.width");
15             runWithKeyDown(function(){video.webkitRequestFullScreen()});
16         }
17     </script>
18 </body>