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

Side by Side Diff: LayoutTests/media/track/regions-webvtt/vtt-region-display.html

Issue 55653003: Rename TextTrackRegion/TextTrackRegionList to VTTRegion/VTTRegionList (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update test expectations Created 7 years, 1 month 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> 2 <html>
3 <head> 3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 5
6 <script src=../../media-controls.js></script> 6 <script src=../../media-controls.js></script>
7 <script src=../../media-file.js></script> 7 <script src=../../media-file.js></script>
8 <script src=../../video-test.js></script> 8 <script src=../../video-test.js></script>
9 <script> 9 <script>
10 var testTrack; 10 var testTrack;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 testExpected("totalVisibleLines <= testTrack.regions[0].height", tru e); 79 testExpected("totalVisibleLines <= testTrack.regions[0].height", tru e);
80 80
81 if (crtSeekTime == seekTimes.length) 81 if (crtSeekTime == seekTimes.length)
82 endTest(); 82 endTest();
83 else 83 else
84 seekVideo(); 84 seekVideo();
85 } 85 }
86 86
87 function startTest() 87 function startTest()
88 { 88 {
89 if (!window.TextTrackRegion) { 89 if (!window.VTTRegion) {
90 failTest(); 90 failTest();
91 return; 91 return;
92 } 92 }
93 93
94 findMediaElement(); 94 findMediaElement();
95 95
96 video.src = findMediaFile('video', '../../content/test'); 96 video.src = findMediaFile('video', '../../content/test');
97 waitForEvent('canplaythrough', testRegionsDisplay); 97 waitForEvent('canplaythrough', testRegionsDisplay);
98 } 98 }
99 99
100 </script> 100 </script>
101 </head> 101 </head>
102 <body> 102 <body>
103 <p>Tests default rendering for TextTrackCues that belong to a TextTrackR egion.</p> 103 <p>Tests default rendering for TextTrackCues that belong to a VTTRegion. </p>
104 <video controls> 104 <video controls>
105 <track src="../captions-webvtt/captions-regions.vtt" kind="captions" default onload="startTest()"> 105 <track src="../captions-webvtt/captions-regions.vtt" kind="captions" default onload="startTest()">
106 </video> 106 </video>
107 </body> 107 </body>
108 </html> 108 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698