Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / video-currentTime-delay.html
blob30afa6ef6f72e9a7b173694310e2ad473feed13c
1 <html>
2 <body>
4 <video controls></video>
6 <p>Test a delay in playing the movie results in a canPlay event.</p>
8 <script src=media-file.js></script>
9 <script src=video-test.js></script>
10 <script>
11 waitForEventOnce('canplaythrough',
12 function () {
13 waitForEventAndEnd('ended');
15 testExpected("video.currentTime", 0);
16 run("video.currentTime = video.duration - 0.2");
17 });
19 waitForEvent('seeked',
20 function () {
21 setTimeout(function() {
22 run("video.play()");
23 }, 400);
24 });
26 video.src = findMediaFile("video", "content/test");
27 </script>
29 </body>
30 </html>