REGRESSION(r276164) [GTK] WKPreferencesDefaults API test is failing
[WebKit-https.git] / LayoutTests / media / track / track-cue-css.html
1 <!DOCTYPE html>
2 <html>
3     <head>
4         <script>var requirePixelDump = true;</script>
5         <script src=../media-file.js></script>
6         <script src=../video-test.js></script>
7         <script>
8
9         function seeked()
10         {
11             consoleWrite("Finishing test.");
12             setTimeout(endTest, 100);
13         }
14         
15         function loaded()
16         {
17             consoleWrite("Test that CSS in VTT file is applied correctly.");
18             findMediaElement();
19             video.src = findMediaFile('video', '../content/test');
20             waitForEvent('seeked', seeked);
21             waitForEvent('canplaythrough', function() { video.currentTime = 0; });
22         }
23
24         setCaptionDisplayMode('Automatic');
25         </script>
26     </head>
27     <body onload="loaded()">
28         <video controls >
29             <track src="captions-webvtt/css-styling.vtt" kind="captions" default>
30         </video>
31     </body>
32 </html>