3 <title>Test pause() pauses the clock immediately
</title>
4 <script src=media-file.js
></script>
5 <script src=video-test.js
></script>
12 video
.src
= findMediaFile("video", "content/test");
13 waitForEvent("canplay", canplay
);
14 waitForEvent("playing", playing
);
15 waitForEvent("pause", pause
);
25 video
.addEventListener("timeupdate", timeupdate
);
30 if (video
.currentTime
> 0) {
31 video
.removeEventListener("timeupdate", timeupdate
);
33 timeAfterPause
= video
.currentTime
;
39 testExpected("(video.currentTime - timeAfterPause)", 0);
40 testExpected("(video.played.end(0) - timeAfterPause)", 0);
45 <body onload=
"test()">
46 <p>Test that pausing the media element has an immediate effect on the clock.
</p>
47 <video controls
></video>