WebCore:
[WebKit-https.git] / LayoutTests / media / video-loopend.html
1 <video src=content/test.mp4 playcount=2 loopend=0.5s></video>
2 <p>Test that video loops when time reaches the value specified by the loopEnd attribute.</p>
3 <script src=video-test.js></script>
4 <script>
5 test("video.loopEnd==0.5");
6 setTimeout(function () { test("video.currentTime<=0.5"); }, 2000);
7 waitForEvent('timeupdate', function () {
8     if (video.currentLoop == 1) {
9         test("video.currentLoop == 1");
10         test("video.currentTime.toFixed(1) == 0");
11         endTest();
12     }
13 });
14 run("video.play()");
15 </script>