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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/media/video-buffered.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, 6 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 <html> 1 <html>
2 <head> 2 <head>
3 </head> 3 </head>
4 <body onload="start()"> 4 <body onload="start()">
5 <p>Start playing a video with preloading enabled, do a seek near the 5 <p>Start playing a video with preloading enabled, do a seek near the
6 end and check multiple buffered timeranges have been created.</p> 6 end and check multiple buffered timeranges have been created.</p>
7 <video id="video" preload="auto" autobuffer></video> 7 <video id="video" preload="auto" autobuffer></video>
8 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 8 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956
9 (Please avoid writing new tests using video-test.js) --> 9 (Please avoid writing new tests using video-test.js) -->
10 <script src=../../media-resources/video-test.js></script> 10 <script src=../../media-resources/video-test.js></script>
11 <script src=../../media-resources/media-file.js></script> 11 <script src=../../media-resources/media-file.js></script>
12 <script> 12 <script>
13 waitForEvent("ended", ended); 13 waitForEvent("ended", ended);
14 waitForEventOnce('playing', function() { 14 waitForEventOnce('playing', function() {
15 testExpected("video.buffered.length", 1, "=="); 15 testExpected("video.buffered.length", 1, "==");
16 run("video.currentTime = video.duration - 0.5"); 16 run("video.currentTime = video.duration - 0.5");
17 }); 17 });
18 18
19 function ended() { 19 function ended() {
20 testExpected("video.buffered.length", 2, "=="); 20 testExpected("video.buffered.length", 2, "==");
21 endTest(); 21 endTest();
22 } 22 }
23 23
24 function start () { 24 function start () {
25 video = document.getElementById('video'); 25 video = document.getElementById('video');
26 var mediaFile = findMediaFile("audio", "../../../media/content/test"); 26 var mediaFile = findMediaFile("audio", "../../../media/content/test");
27 var type = mimeTypeForExtension(mediaFile.split('.').pop()); 27 var type = mimeTypeForExtension(mediaFile.split('.').pop());
28 video.src = "http://127.0.0.1:8000/media/video-throttled-load.cgi?nph=1& name=" + mediaFile + "&throttle=100&type=" + type; 28 video.src = "http://127.0.0.1:8000/media/video-throttled-load.cgi?nph=1& name=" + mediaFile + "&throttle=100&type=" + type;
29 29
30 video.play(); 30 video.play();
31 } 31 }
32 </script> 32 </script>
33 </body> 33 </body>
34 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698