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 | 7 |
8 <script> | 8 <script> |
9 var requirePixelDump = true; | 9 var requirePixelDump = true; |
10 | 10 |
11 function loaded() | 11 function loaded() |
12 { | 12 { |
13 consoleWrite("Rendering horizontal line-positioned cues."); | 13 consoleWrite("Rendering horizontal line-positioned cues."); |
14 findMediaElement(); | 14 findMediaElement(); |
15 | 15 |
16 testTrack = document.querySelector('track'); | 16 testTrack = document.querySelector('track'); |
17 video.src = findMediaFile('video', '../content/test'); | 17 video.src = findMediaFile('video', '../content/test'); |
18 | 18 |
19 waitForEvent('seeked', endTest); | 19 waitForEvent('seeked', endTest); |
20 waitForEvent('canplaythrough', function() { | 20 waitForEvent('canplaythrough', function() { |
21 video.currentTime = .25; | 21 video.currentTime = .25; |
22 }); | 22 }); |
23 } | 23 } |
24 | 24 |
25 </script> | 25 </script> |
26 | 26 |
| 27 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 28 (Please avoid writing new tests using video-test.js) --> |
27 <script src=../video-test.js></script> | 29 <script src=../video-test.js></script> |
28 </head> | 30 </head> |
29 <body onload="loaded()"> | 31 <body onload="loaded()"> |
30 <video> | 32 <video> |
31 <track src="captions-webvtt/captions-snap-to-lines-set.vtt" kind="ca
ptions" default> | 33 <track src="captions-webvtt/captions-snap-to-lines-set.vtt" kind="ca
ptions" default> |
32 </video> | 34 </video> |
33 </body> | 35 </body> |
34 </html> | 36 </html> |
OLD | NEW |