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 | 9 |
8 var timer = null; | 10 var timer = null; |
9 | 11 |
10 function trackLoaded() | 12 function trackLoaded() |
11 { | 13 { |
12 consoleWrite("EVENT(load)"); | 14 consoleWrite("EVENT(load)"); |
13 testExpected("event.target.readyState", HTMLTrackElement.LOADED)
; | 15 testExpected("event.target.readyState", HTMLTrackElement.LOADED)
; |
14 testExpected("event.target.id", "default"); | 16 testExpected("event.target.id", "default"); |
(...skipping 10 matching lines...) Expand all Loading... |
25 </head> | 27 </head> |
26 <body> | 28 <body> |
27 <p>Tests that a track with the 'default' attribute loads automatically.<
/p> | 29 <p>Tests that a track with the 'default' attribute loads automatically.<
/p> |
28 <video> | 30 <video> |
29 <track kind="captions" src="captions-webvtt/tc005-default-styles.vtt
" onload="trackLoaded()"> | 31 <track kind="captions" src="captions-webvtt/tc005-default-styles.vtt
" onload="trackLoaded()"> |
30 <track kind="captions" src="captions-webvtt/tc005-metadata-area.vtt"
onload="trackLoaded()"> | 32 <track kind="captions" src="captions-webvtt/tc005-metadata-area.vtt"
onload="trackLoaded()"> |
31 <track default kind="captions" src="captions-webvtt/tc004-webvtt-fil
e.vtt" onload="trackLoaded()" id="default" > | 33 <track default kind="captions" src="captions-webvtt/tc004-webvtt-fil
e.vtt" onload="trackLoaded()" id="default" > |
32 </video> | 34 </video> |
33 </body> | 35 </body> |
34 </html> | 36 </html> |
OLD | NEW |