WebCore:
[WebKit-https.git] / LayoutTests / media / video-dom-loopcount.html
1 <video src=content/test.mp4 loopend=0.2s end=0.2s></video>
2 <p>Test that playcount DOM attribute causes playback to end after right number of repeats.</p>
3 <script src=video-test.js></script>
4 <script>
5 video.playCount = 3;
6 test("video.playCount == 3");
7 test("video.currentLoop == 0");
8 test("video.getAttribute('playCount') == 3");
9 waitForEventTestAndEnd('ended', "video.currentLoop == 2");
10 run("video.play()");
11 </script>