| 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-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 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 consoleWrite("<br>** Default pseudo IDs should be set properly"); | 36 consoleWrite("<br>** Default pseudo IDs should be set properly"); |
| 37 testExpected("region.getAttribute('part')", "-webkit-media-text-trac
k-region"); | 37 testExpected("region.getAttribute('part')", "-webkit-media-text-trac
k-region"); |
| 38 testExpected("container.getAttribute('part')", "-webkit-media-text-t
rack-region-container"); | 38 testExpected("container.getAttribute('part')", "-webkit-media-text-t
rack-region-container"); |
| 39 | 39 |
| 40 endTest(); | 40 endTest(); |
| 41 } | 41 } |
| 42 | 42 |
| 43 function startTest() | 43 function startTest() |
| 44 { | 44 { |
| 45 if (!window.TextTrackRegion) { | 45 if (!window.VTTRegion) { |
| 46 failTest(); | 46 failTest(); |
| 47 return; | 47 return; |
| 48 } | 48 } |
| 49 | 49 |
| 50 findMediaElement(); | 50 findMediaElement(); |
| 51 | 51 |
| 52 video.src = findMediaFile('video', '../../content/test'); | 52 video.src = findMediaFile('video', '../../content/test'); |
| 53 waitForEvent('canplaythrough', testRegionsDisplay); | 53 waitForEvent('canplaythrough', testRegionsDisplay); |
| 54 } | 54 } |
| 55 | 55 |
| 56 </script> | 56 </script> |
| 57 </head> | 57 </head> |
| 58 <body> | 58 <body> |
| 59 <p>Tests default DOM layout structure for a TextTrackRegion.</p> | 59 <p>Tests default DOM layout structure for a VTTRegion.</p> |
| 60 <video controls> | 60 <video controls> |
| 61 <track src="../captions-webvtt/captions-regions.vtt" kind="captions"
default onload="startTest()"> | 61 <track src="../captions-webvtt/captions-regions.vtt" kind="captions"
default onload="startTest()"> |
| 62 </video> | 62 </video> |
| 63 </body> | 63 </body> |
| 64 </html> | 64 </html> |
| OLD | NEW |