| OLD | NEW | 
|   1 <video></video> |   1 <video></video> | 
|   2 <p>Test that stalled, timeupdate and waiting events are sent when media load sta
    lls in the middle.</p> |   2 <p>Test that stalled, timeupdate and waiting events are sent when media load sta
    lls in the middle.</p> | 
|   3 <script src=../../media-resources/media-file.js></script> |   3 <script src=../../media-resources/media-file.js></script> | 
|   4 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |   4 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 | 
|   5      (Please avoid writing new tests using video-test.js) --> |   5      (Please avoid writing new tests using video-test.js) --> | 
|   6 <script src=../../media-resources/video-test.js></script> |   6 <script src=../../media-resources/video-test.js></script> | 
|   7 <script> |   7 <script> | 
|   8  |   8  | 
|   9     var timeupdateCount = 0; |   9     var timeupdateCount = 0; | 
|  10     var waitingCount = 0; |  10     var waitingCount = 0; | 
|  11  |  11  | 
|  12     waitForEvent('durationchange'); |  12     waitForEvent('durationchange'); | 
|  13     waitForEvent('loadedmetadata'); |  13     waitForEvent('loadedmetadata'); | 
|  14     waitForEvent('loadeddata'); |  14     waitForEvent('loadeddata'); | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
|  34         waitForEventAndEnd('stalled'); |  34         waitForEventAndEnd('stalled'); | 
|  35     } ); |  35     } ); | 
|  36  |  36  | 
|  37     // Find a supported media file. |  37     // Find a supported media file. | 
|  38     var mediaFile = findMediaFile("video", "content/test"); |  38     var mediaFile = findMediaFile("video", "content/test"); | 
|  39     var mimeType = mimeTypeForFile(mediaFile); |  39     var mimeType = mimeTypeForFile(mediaFile); | 
|  40  |  40  | 
|  41     video.src = "http://127.0.0.1:8000/resources/load-and-stall.cgi?name=../../.
    ./media/" + mediaFile + "&mimeType=" + mimeType + "&stallAt=100000&stallFor=6"; |  41     video.src = "http://127.0.0.1:8000/resources/load-and-stall.cgi?name=../../.
    ./media/" + mediaFile + "&mimeType=" + mimeType + "&stallAt=100000&stallFor=6"; | 
|  42     run("video.play()"); |  42     run("video.play()"); | 
|  43 </script> |  43 </script> | 
| OLD | NEW |