Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Side by Side Diff: LayoutTests/fullscreen/video-specified-size.html

Issue 22454003: Support subtitles for native fullscreen video (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698