upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / media / video-duration-known-after-eos.html
1 <!DOCTYPE HTML>
2
3 <html>
4     <head>
5         <title>local video</title>
6
7         <script src=media-file.js></script>
8         <script src=video-test.js></script>
9
10         <script>
11             function ended()
12             {
13                 testExpected("video.duration", 0, '>');
14                 endTest();
15             }
16
17             function playing()
18             {
19                 run("video.currentTime = video.duration - 0.2");
20             }
21
22             function start()
23             {
24                 findMediaElement();
25
26                 video.addEventListener("ended", ended);
27                 video.addEventListener("playing", playing);
28
29                 video.src = findMediaFile("video", "content/test");
30                 consoleWrite("");
31                 run("video.play()");
32             }
33
34         </script>
35     </head>
36     <body>
37         <video controls autobuffer></video>
38         <p>Tests that duration is known after playback ended.</p>
39         <script>start()</script>
40     </body>
41 </html>
42
43