OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <title>Test, rendering horizontal line-positioned cues.</title> |
3 <head> | 3 <script src="../media-file.js"></script> |
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | 4 <video> |
| 5 <track src="captions-webvtt/captions-snap-to-lines-set.vtt" kind="captions"
default> |
| 6 </video> |
| 7 <script> |
| 8 var video = document.querySelector("video"); |
| 9 video.src = findMediaFile("video", "../content/test"); |
5 | 10 |
6 <script src=../media-file.js></script> | 11 testRunner.waitUntilDone(); |
| 12 video.onseeked = function() { |
| 13 testRunner.notifyDone(); |
| 14 } |
7 | 15 |
8 <script> | 16 video.currentTime = 0.25; |
9 var requirePixelDump = true; | 17 </script> |
10 | |
11 function loaded() | |
12 { | |
13 consoleWrite("Rendering horizontal line-positioned cues."); | |
14 findMediaElement(); | |
15 | |
16 testTrack = document.querySelector('track'); | |
17 video.src = findMediaFile('video', '../content/test'); | |
18 | |
19 waitForEvent('seeked', endTest); | |
20 waitForEvent('canplaythrough', function() { | |
21 video.currentTime = .25; | |
22 }); | |
23 } | |
24 | |
25 </script> | |
26 | |
27 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 | |
28 (Please avoid writing new tests using video-test.js) --> | |
29 <script src=../video-test.js></script> | |
30 </head> | |
31 <body onload="loaded()"> | |
32 <video> | |
33 <track src="captions-webvtt/captions-snap-to-lines-set.vtt" kind="ca
ptions" default> | |
34 </video> | |
35 </body> | |
36 </html> | |
OLD | NEW |