[Release] Webkit-EFL Ver. 2.0_beta_118996_0.6.24
[framework/web/webkit-efl.git] / LayoutTests / media / video-replaces-poster.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <script src="media-file.js"></script>
5     <script src="video-test.js"></script>
6     <script type="text/javascript" charset="utf-8">
7         function doSetup()
8         {
9             findMediaElement();
10             video.src = findMediaFile('video', 'content/test');
11             video.addEventListener("canplaythrough", function () {
12                 video.currentTime = 1;  // so the snapshot always has the same frame.
13             });
14             video.addEventListener("seeked", function() {
15                 testExpected(video.currentTime, 1);
16                 if (window.layoutTestController)
17                     layoutTestController.notifyDone();
18             });
19         }
20         window.addEventListener('load', doSetup, false);
21     </script>
22 </head>
23 <body>
24     <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=34966">https://bugs.webkit.org/show_bug.cgi?id=34966</a>. <br>
25     You should see the video below.</p>
26
27     <video width="480" height="270" poster="content/abe.png"></video>
28 </body>
29 </html>