OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../media-file.js"></script> | 4 <script src="../media-file.js"></script> |
| 5 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 6 (Please avoid writing new tests using video-test.js) --> |
5 <script src="../video-test.js"></script> | 7 <script src="../video-test.js"></script> |
6 <script> | 8 <script> |
7 if (window.testRunner) | 9 if (window.testRunner) |
8 testRunner.dumpAsText(); | 10 testRunner.dumpAsText(); |
9 | 11 |
10 waitForEvent('loadstart', function () | 12 waitForEvent('loadstart', function () |
11 { | 13 { |
12 var video = document.getElementById('vid'); | 14 var video = document.getElementById('vid'); |
13 video.textTracks[0].mode = "disabled"; | 15 video.textTracks[0].mode = "disabled"; |
14 | 16 |
(...skipping 12 matching lines...) Loading... |
27 }); | 29 }); |
28 | 30 |
29 </script> | 31 </script> |
30 </head> | 32 </head> |
31 <body> | 33 <body> |
32 <video id="vid" src="../content/test.ogv" autoplay controls> | 34 <video id="vid" src="../content/test.ogv" autoplay controls> |
33 <track kind='subtitles' srclang='en' label='English' src='captions-w
ebvtt/captions.vtt' /> | 35 <track kind='subtitles' srclang='en' label='English' src='captions-w
ebvtt/captions.vtt' /> |
34 </video> | 36 </video> |
35 </body> | 37 </body> |
36 </html> | 38 </html> |
OLD | NEW |