| OLD | NEW | 
|    1 <video controls></video> |    1 <video controls></video> | 
|    2 <p>Test that progress events are generated during loading of media resource.</p> |    2 <p>Test that progress events are generated during loading of media resource.</p> | 
|    3 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |    3 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 | 
|    4      (Please avoid writing new tests using video-test.js) --> |    4      (Please avoid writing new tests using video-test.js) --> | 
|    5 <script src=../../media-resources/video-test.js></script> |    5 <script src=../../media-resources/video-test.js></script> | 
|    6 <script src=../../media-resources/media-file.js></script> |    6 <script src=../../media-resources/media-file.js></script> | 
|    7 <script> |    7 <script> | 
|    8     waitForEventAndFail('error'); |    8     waitForEventAndFail('error'); | 
|    9  |    9  | 
|   10     // Given long enough duration, We should not reach ended playback state. |   10     // Given long enough duration, We should not reach ended playback state. | 
|   11     waitForEventAndFail('ended'); |   11     waitForEventAndFail('ended'); | 
|   12  |   12  | 
|   13     // Tuned throttling should not induce player stall or suspended load. |   13     // Tuned throttling should not induce player stall or suspended load. | 
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   93     var mediaFile = findMediaFile('video', 'resources/test'); |   93     var mediaFile = findMediaFile('video', 'resources/test'); | 
|   94     var mimeType = mimeTypeForFile(mediaFile); |   94     var mimeType = mimeTypeForFile(mediaFile); | 
|   95     // Assumes minimum file size selected is > 100 kB. |   95     // Assumes minimum file size selected is > 100 kB. | 
|   96     // At least 4*maxProgressFiringIntervalInMS is how long we want to stretch t
     he full |   96     // At least 4*maxProgressFiringIntervalInMS is how long we want to stretch t
     he full | 
|   97     // loading, because we perform checks after 3 of these intervals while still |   97     // loading, because we perform checks after 3 of these intervals while still | 
|   98     // loading. 100 kB over 2.2 seconds is 45 kBps. |   98     // loading. 100 kB over 2.2 seconds is 45 kBps. | 
|   99     var kBps = 45; |   99     var kBps = 45; | 
|  100  |  100  | 
|  101     video.src = 'video-throttled-load.cgi' + '?name=' + mediaFile + '&throttle='
      + kBps + '&type=' + mimeType; |  101     video.src = 'video-throttled-load.cgi' + '?name=' + mediaFile + '&throttle='
      + kBps + '&type=' + mimeType; | 
|  102 </script> |  102 </script> | 
| OLD | NEW |