upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / media / video-set-rate-from-pause.html
1 <!DOCTYPE html>
2 <html>
3     <head>
4         <script src=media-file.js></script>
5         <script src=video-test.js></script>
6         <script>
7             function init() {
8                 findMediaElement();
9                 waitForEvent('canplaythrough', receivedCanPlayThrough);
10                 video.src = findMediaFile("video", "content/test");
11             }
12
13             function receivedCanPlayThrough() {
14                 waitForEvent('play', receivedPlay);
15                 video.playbackRate = 0;
16                 video.play();
17             }
18
19             function receivedPlay() {
20                 waitForEventAndEnd('timeupdate');
21                 video.playbackRate = 1;
22             }    
23         </script>
24     </head>
25     <body onload="init()">
26         <video controls></video>
27         <p>Test that setting a non-zero rate causes an async timeupdate event.</p>
28     </body>
29 </html>