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

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

Issue 205523003: Remove beforeload events. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove more tests Created 6 years, 9 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 | Annotate | Revision Log
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 <script src=../../media-resources/video-test.js></script> 4 <script src=../../media-resources/video-test.js></script>
5 <script> 5 <script>
6 6
7 // Expected events. 7 // Expected events.
8 waitForEvent("beforeload");
9 waitForEvent("loadstart"); 8 waitForEvent("loadstart");
10 waitForEvent("stalled"); 9 waitForEvent("stalled");
11 waitForEvent("suspend"); 10 waitForEvent("suspend");
12 11
13 // We want to make sure the onload event fires. 12 // We want to make sure the onload event fires.
14 window.onload = function() { 13 window.onload = function() {
15 consoleWrite("EVENT(window.onload)"); 14 consoleWrite("EVENT(window.onload)");
16 endTest(); 15 endTest();
17 }; 16 };
18 17
19 // Find a supported media file. 18 // Find a supported media file.
20 var mediaFile = findMediaFile("video", "content/test"); 19 var mediaFile = findMediaFile("video", "content/test");
21 var mimeType = mimeTypeForFile(mediaFile); 20 var mimeType = mimeTypeForFile(mediaFile);
22 21
23 // Load should stall very early in the loading process. 22 // Load should stall very early in the loading process.
24 video.src = "http://127.0.0.1:8000/resources/load-and-stall.cgi?name=../../. ./media/" + mediaFile + "&mimeType=" + mimeType + "&stallAt=1&stallFor=4"; 23 video.src = "http://127.0.0.1:8000/resources/load-and-stall.cgi?name=../../. ./media/" + mediaFile + "&mimeType=" + mimeType + "&stallAt=1&stallFor=4";
25 24
26 </script> 25 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698