Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: third_party/WebKit/LayoutTests/media/video-buffered-unknown-duration.html

Issue 2015503002: Move TODO(philipj) to TODO(foolip) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 &lt; video.buffered.end(0) upon first timeupdate.</p> 5 video.currentTime &lt; 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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698