OLD | NEW |
1 <body> | 1 <body> |
2 <video id="video" width="300" controls></video> | 2 <video id="video" width="300" controls></video> |
3 <script> | 3 <script> |
4 if (window.internals) | 4 if (window.internals) |
5 runPixelTests = internals.runtimeFlags.overlayFullscreenVideoEnabled
; | 5 runPixelTests = internals.runtimeFlags.overlayFullscreenVideoEnabled
; |
6 </script> | 6 </script> |
7 <script src="full-screen-test.js"></script> | 7 <script src="full-screen-test.js"></script> |
8 <script src=../media/media-file.js></script> | 8 <script src=../media/media-file.js></script> |
9 <script> | 9 <script> |
10 setSrcById("video", findMediaFile("video", "../media/content/test")); | 10 setSrcById("video", findMediaFile("video", "../media/content/test")); |
11 var video = document.getElementById('video'); | 11 var video = document.getElementById('video'); |
12 // Bail out early if the full screen API is not enabled or is missing: | 12 waitForEventTestAndEnd(document, 'webkitfullscreenchange', "video.client
Width==document.body.clientWidth"); |
13 if (Element.prototype.webkitRequestFullScreen == undefined) { | 13 runWithKeyDown(function(){video.webkitRequestFullScreen()}); |
14 logResult(false, "Element.prototype.webkitRequestFullScreen == undef
ined"); | |
15 endTest(); | |
16 } else { | |
17 waitForEventTestAndEnd(document, 'webkitfullscreenchange', "video.cl
ientWidth==document.body.clientWidth"); | |
18 runWithKeyDown(function(){video.webkitRequestFullScreen()}); | |
19 } | |
20 </script> | 14 </script> |
21 </body> | 15 </body> |
OLD | NEW |