blob: 87e8fd33f68a14de9f902a89619de37b675170bb [file] [log] [blame]
<video src=content/test.mp4 loopend=0.2s end=0.2s controls></video>
<p>Test that playcount DOM attribute causes playback to end after right number of repeats.</p>
<script src=video-test.js></script>
<script>
video.playCount = 3;
test("video.playCount == 3");
test("video.currentLoop == 0");
test("video.getAttribute('playCount') == 3");
waitForEventTestAndEnd('ended', "video.currentLoop == 2");
run("video.play()");
</script>