blob: f750aa181a3136ba9a858616b10e7f652adbcd51 [file] [log] [blame]
<video playcount=2 loopstart=1s controls></video>
<p>Test that playing video rewinds to time specified by the loopstart attribute when it loops.</p>
<script src=video-test.js></script>
<script>
test("video.loopStart==1.0");
waitForEvent('load', function () {
waitForEvent('timeupdate', function () {
failTestIn(1000);
if (video.currentLoop == 1) {
test("video.currentLoop == 1");
test("video.currentTime.toFixed(1) == 1.0");
endTest();
}
});
video.currentTime = video.duration - 0.2;
});
video.src = "content/test.mp4";
run("video.play()");
</script>