blob: 0f7d53c44f7ac67d9d3535cae375bee2b0cce9d3 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src=media-file.js></script>
<script src=video-test.js></script>
<script>
function init() {
findMediaElement();
waitForEvent('canplaythrough', receivedCanPlayThrough);
video.src = findMediaFile("video", "content/test");
}
function receivedCanPlayThrough() {
waitForEvent('play', receivedPlay);
video.playbackRate = 0;
video.play();
}
function receivedPlay() {
waitForEventAndEnd('timeupdate');
video.playbackRate = 1;
}
</script>
</head>
<body onload="init()">
<video controls></video>
<p>Test that setting a non-zero rate causes an async timeupdate event.</p>
</body>
</html>