| 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 cue; | 9 var cue; |
| 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 consoleWrite("<br>** Test the setter and getter through the JS A
PI **"); | 18 consoleWrite("<br>** Test the setter and getter through the JS A
PI **"); |
| 19 cue = new TextTrackCue(0.0, 1.0, "sample"); | 19 cue = new TextTrackCue(0.0, 1.0, "sample"); |
| 20 | 20 |
| 21 testExpected("cue.regionId", ""); | 21 testExpected("cue.regionId", ""); |
| 22 cue.regionId = "someId"; | 22 cue.regionId = "someId"; |
| 23 testExpected("cue.regionId", "someId"); | 23 testExpected("cue.regionId", "someId"); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 39 } | 39 } |
| 40 </script> | 40 </script> |
| 41 </head> | 41 </head> |
| 42 <body> | 42 <body> |
| 43 <p>Tests the regionId attribute of a cue.</p> | 43 <p>Tests the regionId attribute of a cue.</p> |
| 44 <video controls> | 44 <video controls> |
| 45 <track src="../captions-webvtt/header-regions.vtt" kind="captions" d
efault onload="startTest()"> | 45 <track src="../captions-webvtt/header-regions.vtt" kind="captions" d
efault onload="startTest()"> |
| 46 </video> | 46 </video> |
| 47 </body> | 47 </body> |
| 48 </html> | 48 </html> |
| OLD | NEW |