OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <p>This tests that the video should not be rendered in full screen if requestFul
lScreen() fails.</p> | 2 <p>This tests that the video should not be rendered in full screen if requestFul
lScreen() fails.</p> |
3 <video id="video" width="300"></video> | 3 <video id="video" width="300"></video> |
4 <script> | 4 <script> |
5 if (window.internals) | 5 if (window.internals) |
6 runPixelTests = internals.runtimeFlags.overlayFullscreenVideoEnabled; | 6 runPixelTests = internals.runtimeFlags.overlayFullscreenVideoEnabled || in
ternals.runtimeFlags.forceOverlayFullscreenVideoEnabled; |
7 </script> | 7 </script> |
8 <script src="full-screen-test.js"></script> | 8 <script src="full-screen-test.js"></script> |
9 <script src="../media/media-controls.js"></script> | 9 <script src="../media/media-controls.js"></script> |
10 <script> | 10 <script> |
11 var video = document.getElementById('video'); | 11 var video = document.getElementById('video'); |
12 video.webkitRequestFullScreen(); | 12 video.webkitRequestFullScreen(); |
13 setTimeout(function() { | 13 setTimeout(function() { |
14 endTest(); | 14 endTest(); |
15 }, 300); | 15 }, 300); |
16 </script> | 16 </script> |
OLD | NEW |