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>
11 waitForEvent('canplaythrough',
13 waitForEventAndEnd('ended');
15 testExpected("video.currentTime", 0);
16 run("video.currentTime = video.duration - 0.2");
19 waitForEvent('seeked',
21 setTimeout(function() {
26 setTimeout(function () { logResult(false, "No 'ended' event in " + timeout/1000 + " seconds"); }, timeout);
30 video.src = findMediaFile("video", "content/test");