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 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 | 7 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
8 (Please avoid writing new tests using video-test.js) --> | 8 (Please avoid writing new tests using video-test.js) --> |
9 <script src=../video-test.js></script> | 9 <script src=../video-test.js></script> |
10 <script> | 10 <script> |
11 | 11 |
12 numberOfTrackTests = 3; | 12 numberOfTrackTests = 3; |
13 | 13 |
14 function trackLoaded() | 14 function trackLoaded() |
15 { | 15 { |
16 numberOfTracksLoaded++; | 16 numberOfTracksLoaded++; |
17 if (numberOfTracksLoaded == numberOfTrackTests) { | 17 if (numberOfTracksLoaded == numberOfTrackTests) { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 </head> | 62 </head> |
63 <body onload="enableAllTextTracks()"> | 63 <body onload="enableAllTextTracks()"> |
64 <p>Tests cue alignment from settings.</p> | 64 <p>Tests cue alignment from settings.</p> |
65 <video> | 65 <video> |
66 <track src="captions-webvtt/tc014-alignment.vtt" onload="trackLoaded
()"> | 66 <track src="captions-webvtt/tc014-alignment.vtt" onload="trackLoaded
()"> |
67 <track src="captions-webvtt/tc014-alignment-ltr.vtt" onload="trackLo
aded()"> | 67 <track src="captions-webvtt/tc014-alignment-ltr.vtt" onload="trackLo
aded()"> |
68 <track src="captions-webvtt/tc014-alignment-bad.vtt" onload="trackLo
aded()"> | 68 <track src="captions-webvtt/tc014-alignment-bad.vtt" onload="trackLo
aded()"> |
69 </video> | 69 </video> |
70 </body> | 70 </body> |
71 </html> | 71 </html> |
OLD | NEW |