[Modern Media Controls] Turn media/modern-media-controls/ios-inline-media-controls...
[WebKit-https.git] / LayoutTests / media / video-controller-currentTime-rate.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 start()
8             {
9                 findMediaElement();
10                 video.src = findMediaFile("video", "content/test");
11                 waitForEventOnce('canplaythrough', canPlayThrough);
12             }
13
14             function canPlayThrough()
15             {
16                 video.controller.currentTime = 0;
17                 video.controller.playbackRate = 1.01;
18                 testExpected(video.controller.currentTime, 0, "==");
19                 endTest();
20             }
21         </script>
22     </head>
23     <body onload="start()">
24         <video mediaGroup="group"></video>
25         <p>Test that setting playbackRate on media controller modifies current time</p>
26     </body>
27 </html>