Try to make this test less timing dependent.
[WebKit-https.git] / LayoutTests / media / video-currentTime-set.html
1 <video src=content/test.mp4></video>
2 <script src=video-test.js></script>
3 <script>
4 waitForEvent('load',  
5 function () { 
6     video.currentTime = video.duration - 0.2; 
7     video.play(); 
8     waitForEvent('timeupdate',
9     function () {
10         setTimeout(function () { test("false") }, 800);
11     });
12     waitForEventAndEnd('ended');
13 });
14 </script>