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

Side by Side Diff: LayoutTests/media/track/regions-webvtt/vtt-region-parser.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-file.js></script> 6 <script src=../../media-file.js></script>
7 <script src=../../video-test.js></script> 7 <script src=../../video-test.js></script>
8 <script> 8 <script>
9 var region; 9 var region;
10 10
11 function startTest() 11 function startTest()
12 { 12 {
13 if (!window.TextTrackRegion) { 13 if (!window.VTTRegion) {
14 failTest(); 14 failTest();
15 return; 15 return;
16 } 16 }
17 17
18 findMediaElement(); 18 findMediaElement();
19 testExpected("video.textTracks[0].regions.length", 5); 19 testExpected("video.textTracks[0].regions.length", 5);
20 20
21 consoleWrite(""); 21 consoleWrite("");
22 region = video.textTracks[0].regions[0]; 22 region = video.textTracks[0].regions[0];
23 testExpected("region.id", "region_without_settings"); 23 testExpected("region.id", "region_without_settings");
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 </script> 57 </script>
58 </head> 58 </head>
59 <body> 59 <body>
60 <p>Tests proper parsing of various regions present in WebVTT header area .</p> 60 <p>Tests proper parsing of various regions present in WebVTT header area .</p>
61 <video controls> 61 <video controls>
62 <track src="../captions-webvtt/header-regions.vtt" kind="captions" d efault onload="startTest()"> 62 <track src="../captions-webvtt/header-regions.vtt" kind="captions" d efault onload="startTest()">
63 </video> 63 </video>
64 64
65 </body> 65 </body>
66 </html> 66 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698