| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body onload="start()"> | 3 <body onload="start()"> |
| 4 <p>Load a video with an infinite duration. Start playback and ensure | 4 <p>Load a video with an infinite duration. Start playback and ensure |
| 5 video.currentTime < video.buffered.end(0) upon first timeupdate.</p> | 5 video.currentTime < video.buffered.end(0) upon first timeupdate.</p> |
| 6 <video></video> | 6 <video></video> |
| 7 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 | 7 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
| 8 (Please avoid writing new tests using video-test.js) --> | 8 (Please avoid writing new tests using video-test.js) --> |
| 9 <script src="video-test.js"></script> | 9 <script src="video-test.js"></script> |
| 10 <script src="media-file.js"></script> | 10 <script src="media-file.js"></script> |
| 11 <script> | 11 <script> |
| 12 waitForEventOnce('timeupdate', function() { | 12 waitForEventOnce('timeupdate', function() { |
| 13 video.pause(); | 13 video.pause(); |
| 14 | 14 |
| 15 testExpected('video.duration', Infinity, '=='); | 15 testExpected('video.duration', Infinity, '=='); |
| 16 testExpected('video.buffered.start(0)', 0, '>='); | 16 testExpected('video.buffered.start(0)', 0, '>='); |
| 17 | 17 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 31 testExpected('video.duration', Infinity, '=='); | 31 testExpected('video.duration', Infinity, '=='); |
| 32 video.play(); | 32 video.play(); |
| 33 }); | 33 }); |
| 34 | 34 |
| 35 function start() { | 35 function start() { |
| 36 video.src = 'resources/test-live.webm'; | 36 video.src = 'resources/test-live.webm'; |
| 37 } | 37 } |
| 38 </script> | 38 </script> |
| 39 </body> | 39 </body> |
| 40 </html> | 40 </html> |
| OLD | NEW |