| <script src=media-file.js></script> |
| <script src=video-test.js></script> |
| var timeUpdateWasCalled = false; |
| video.src = findMediaFile("video", "content/test"); |
| waitForEventAndFail('ended'); |
| video.addEventListener('timeupdate', timeupdate); |
| waitForEventOnce('canplaythrough', canPlayThrough); |
| function canPlayThrough() |
| startTime = video.currentTime; |
| setTimeout("checkplayback()", 250); |
| if (video.currentTime != startTime) |
| failTest("Time was updated, but should not change."); |
| testExpected('video.currentTime', 0); |
| testExpected('video.paused', false); |
| <p>Test that setting '0' playbackRate works correctly.</p> |