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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/media/video-play-stall-before-meta-data.html

Issue 1715303002: Add TODOs to convert from video-test.js to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add bug ref Created 4 years, 10 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 <video></video> 1 <video></video>
2 <p>Test that stalling very early, while loading meta-data, stops delaying the lo ad event.</p> 2 <p>Test that stalling very early, while loading meta-data, stops delaying the lo ad event.</p>
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
5 (Please avoid writing new tests using video-test.js) -->
4 <script src=../../media-resources/video-test.js></script> 6 <script src=../../media-resources/video-test.js></script>
5 <script> 7 <script>
6 8
7 // Expected events. 9 // Expected events.
8 waitForEvent("loadstart"); 10 waitForEvent("loadstart");
9 waitForEvent("stalled"); 11 waitForEvent("stalled");
10 waitForEvent("suspend"); 12 waitForEvent("suspend");
11 13
12 // We want to make sure the onload event fires. 14 // We want to make sure the onload event fires.
13 window.onload = function() { 15 window.onload = function() {
14 consoleWrite("EVENT(window.onload)"); 16 consoleWrite("EVENT(window.onload)");
15 endTest(); 17 endTest();
16 }; 18 };
17 19
18 // Find a supported media file. 20 // Find a supported media file.
19 var mediaFile = findMediaFile("video", "content/test"); 21 var mediaFile = findMediaFile("video", "content/test");
20 var mimeType = mimeTypeForFile(mediaFile); 22 var mimeType = mimeTypeForFile(mediaFile);
21 23
22 // Load should stall very early in the loading process. 24 // Load should stall very early in the loading process.
23 video.src = "http://127.0.0.1:8000/resources/load-and-stall.cgi?name=../../. ./media/" + mediaFile + "&mimeType=" + mimeType + "&stallAt=1&stallFor=4"; 25 video.src = "http://127.0.0.1:8000/resources/load-and-stall.cgi?name=../../. ./media/" + mediaFile + "&mimeType=" + mimeType + "&stallAt=1&stallFor=4";
24 26
25 </script> 27 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698