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