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