Display a TextTrackCue when snap-to-lines flag is set
[WebKit-https.git] / LayoutTests / media / track / track-cue-rendering-horizontal.html
1 <!DOCTYPE html>
2 <html>
3     <head>
4         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
6         <script src=../media-file.js></script>
7         <script src=../media-controls.js></script>
8
9         <script>
10         var requirePixelDump = true;
11
12         function loaded()
13         {
14             consoleWrite("Rendering horizontal line-positioned cues.");
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 = .25;
23             });
24         }
25
26         </script>
27
28         <script src=../video-test.js></script>
29     </head>
30     <body onload="loaded()">
31         <video controls>
32             <track src="captions-webvtt/captions-snap-to-lines-set.vtt" kind="captions" default>
33         </video>
34     </body>
35 </html>