Reviewed by Maciej.
[WebKit-https.git] / LayoutTests / media / video-dom-loopend.html
1 <video src=content/test.mp4 loopcount=2 autoplay></video>
2 <script src=video-test.js></script>
3 <script>
4 video.loopEnd=0.5;
5 test("video.loopEnd==0.5");
6 test("video.getAttribute('loopend') == '0.5s'");
7 setTimeout(function () { test("video.currentTime<=0.5"); }, 2000);
8 waitForEventTestAndEnd('timeupdate', "video.currentTime.toFixed(1) == 0 && video.currentLoop==1");
9 </script>