| <script src=media-file.js></script> |
| <script src=video-test.js></script> |
| function canplaythrough() |
| testExpected("video.currentTime", 0); |
| run("video.currentTime = " + seekTime); |
| testExpected("video.currentTime.toFixed(1)", seekTime); |
| run("video.playbackRate = -1"); |
| if (startedPlayback && video.currentTime == 0) { |
| consoleWrite("EVENT(timeupdate) fired at time 0"); |
| testExpected("video.ended", false); |
| waitForEvent('canplaythrough', canplaythrough); |
| waitForEvent('seeked', seeked); |
| video.addEventListener("timeupdate", timeupdate); |
| video.src = findMediaFile("video", "content/test"); |
| <video controls autobuffer></video> |
| <p>Tests that a 'timeupdate' event is fired when a movie plays<br> in reverse to time zero.</p> |