| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |