4 <video controls
></video>
7 Test 'timeupdate' events are posted while playing but not while paused.
9 <script src=media-file.js
></script>
10 <script src=video-test.js
></script>
12 setSrcByTagName("video", findMediaFile("video", "content/test"));
14 var timeupdateEventCount
= 0;
15 var countWhilePlaying
= 0;
17 function someTimeLater()
19 if (countWhilePlaying
!= timeupdateEventCount
)
20 failTest("'timeupdate' events posted after pausing");
26 countWhilePlaying
= timeupdateEventCount
;
27 setTimeout(someTimeLater
, 400) ;
33 setTimeout(function () { run("video.pause()"); }, 500) ;
37 mediaElement
.addEventListener("timeupdate", function () { ++timeupdateEventCount
; });
39 waitForEvent('error');
40 waitForEvent("loadstart");
41 waitForEvent("waiting");
42 waitForEvent("ratechange");
43 waitForEvent("durationchange");
44 waitForEvent("loadedmetadata");
45 waitForEvent("loadeddata");
46 waitForEvent("canplay");
47 waitForEvent("pause", pause
);
49 waitForEvent("playing", playing
);