WebCore:
[WebKit-https.git] / LayoutTests / media / video-dom-loopcount.html
index 41f9d14..397aab2 100644 (file)
@@ -1,9 +1,11 @@
-<video src=content/test.mp4 loopend=0.2s end=0.2s autoplay></video>
+<video src=content/test.mp4 loopend=0.2s end=0.2s></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.loopCount = 2;
-test("video.loopCount == 2");
+video.playCount = 3;
+test("video.playCount == 3");
 test("video.currentLoop == 0");
-test("video.getAttribute('loopCount') == 2");
-waitForEventTestAndEnd('ended', "video.currentLoop == 1");
+test("video.getAttribute('playCount') == 3");
+waitForEventTestAndEnd('ended', "video.currentLoop == 2");
+run("video.play()");
 </script>