Try to make this test less timing dependent.
[WebKit-https.git] / LayoutTests / http / tests / media / video-play-stall.html
1 <video></video>
2 <p>Test that dataunavailable, timeupdate and waiting events are sent when media load stalls in the middle.</p>
3 <script src=../../../media/video-test.js></script>
4 <script>
5 waitForEvent('durationchange');
6 waitForEvent('loadedmetadata');
7 waitForEvent('loadedfirstframe');
8 waitForEvent('canshowcurrentframe');
9 waitForEvent('canplay', function () {
10     waitForEvent('dataunavailable');
11     waitForEvent('timeupdate');
12     waitForEventAndEnd('waiting');
13 } );
14 video.src = "http://127.0.0.1:8000/media/video-load-and-stall.cgi?name=../../../media/content/test.mp4&stallAt=80000";
15 video.play();
16 </script>