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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/webvtt/rendering/cues-with-video/processing-model/dom_override_cue_align_position_line_size.html

Issue 2695813009: Import wpt@503f5b5f78ec4e87d144f78609f363f0ed0ea8db (Closed)
Patch Set: Skip some tests Created 3 years, 10 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html class="reftest-wait"> 2 <html class="reftest-wait">
3 <title>WebVTT rendering, a cue's align, position, line and size properties is po ssible to override using the DOM APIs</title> 3 <title>WebVTT rendering, a cue's align, position, line and size properties is po ssible to override using the DOM APIs</title>
4 <link rel="match" href="dom_override_cue_align_position_line_size-ref.html"> 4 <link rel="match" href="dom_override_cue_align_position_line_size-ref.html">
5 <style> 5 <style>
6 html { overflow:hidden } 6 html { overflow:hidden }
7 body { margin:0 } 7 body { margin:0 }
8 ::cue { 8 ::cue {
9 font-family: Ahem, sans-serif; 9 font-family: Ahem, sans-serif;
10 color: green 10 color: green
11 } 11 }
12 </style> 12 </style>
13 <script src="/common/reftest-wait.js"></script> 13 <script src="/common/reftest-wait.js"></script>
14 <script> 14 <script>
15 var i = 0;
15 function updateCue() { 16 function updateCue() {
17 i++;
18 if (i !== 2) {
19 return;
20 }
16 var t = document.getElementById('track'); 21 var t = document.getElementById('track');
17 var c = t.track.cues[0]; 22 var c = t.track.cues[0];
18 c.align = 'start'; 23 c.align = 'start';
19 c.position = 80; 24 c.position = 80;
20 c.line = 0; 25 c.line = 0;
21 c.size = 20; 26 c.size = 20;
22 c.text = 'There is nothing to see here people, move on'; 27 c.text = 'There is nothing to see here people, move on';
23 updateRendering(); 28 updateRendering();
24 } 29 }
25 function updateRendering() { 30 function updateRendering() {
26 var v = document.getElementById('video'); 31 var v = document.getElementById('video');
27 v.onplaying = function() { 32 v.onplaying = function() {
28 this.onplaying = null; 33 this.onplaying = null;
29 this.pause(); 34 this.pause();
30 takeScreenshot(); 35 takeScreenshotDelayed(1000);
31 }; 36 };
32 v.play(); 37 v.play();
33 } 38 }
34 </script> 39 </script>
35 <video id="video" width="1280" height="720" autoplay onplaying="this.onplaying = null; this.pause(); updateCue();"> 40 <video id="video" width="320" height="180" autoplay onplaying="this.onplaying = null; this.pause(); updateCue();">
36 <source src="/media/white.webm" type="video/webm"> 41 <source src="/media/white.webm" type="video/webm">
37 <source src="/media/white.mp4" type="video/mp4"> 42 <source src="/media/white.mp4" type="video/mp4">
38 <track id="track" src="support/test.vtt"> 43 <track id="track" src="support/test.vtt" onload="updateCue();">
39 <script> 44 <script>
40 document.getElementsByTagName('track')[0].track.mode = 'showing'; 45 document.getElementsByTagName('track')[0].track.mode = 'showing';
41 </script> 46 </script>
42 </video> 47 </video>
43 </html> 48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698