| Test 'timeupdate' events are posted while playing but not while paused. |
| <script src=media-file.js></script> |
| <script src=video-test.js></script> |
| setSrcByTagName("video", findMediaFile("video", "content/test")); |
| var timeupdateEventCount = 0; |
| var countWhilePlaying = 0; |
| if (countWhilePlaying != timeupdateEventCount) |
| failTest("'timeupdate' events posted after pausing"); |
| countWhilePlaying = timeupdateEventCount; |
| setTimeout(someTimeLater, 400) ; |
| setTimeout(function () { run("video.pause()"); }, 500) ; |
| mediaElement.addEventListener("timeupdate", function () { ++timeupdateEventCount; }); |
| waitForEvent("loadstart"); |
| waitForEvent("ratechange"); |
| waitForEvent("durationchange"); |
| waitForEvent("loadedmetadata"); |
| waitForEvent("loadeddata"); |
| waitForEvent("pause", pause); |
| waitForEvent("playing", playing); |