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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/media/video-load-suspend.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 <html> 1 <html>
2 <head> 2 <head>
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 var file = findMediaFile("video", "http://127.0.0.1:8000/resources/test"); 8 var file = findMediaFile("video", "http://127.0.0.1:8000/resources/test");
9 9
10 function init() 10 function init()
11 { 11 {
12 findMediaElement(); 12 findMediaElement();
13 run("video.src = file"); 13 run("video.src = file");
14 waitForEvent('loadstart', onLoadStart); 14 waitForEvent('loadstart', onLoadStart);
15 } 15 }
16 16
17 function onLoadStart() 17 function onLoadStart()
18 { 18 {
19 waitForEvent('suspend', onSuspend); 19 waitForEvent('suspend', onSuspend);
20 } 20 }
21 21
22 function onSuspend() 22 function onSuspend()
23 { 23 {
24 testExpected("video.networkState", HTMLMediaElement.NETWORK_IDLE, "=="); 24 testExpected("video.networkState", HTMLMediaElement.NETWORK_IDLE, "==");
25 endTest(); 25 endTest();
26 } 26 }
27 </script> 27 </script>
28 </head> 28 </head>
29 <body onload="init()"> 29 <body onload="init()">
30 <p>Test that the load eventually suspends and returns to NETWORK_IDLE.</p> 30 <p>Test that the load eventually suspends and returns to NETWORK_IDLE.</p>
31 <video></video> 31 <video></video>
32 </body> 32 </body>
33 </html> 33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698