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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/media/remove-while-loading.html

Issue 2645953004: Update duration when demuxed packets exceed known duration. (Closed)
Patch Set: Remove broken CGI server. Rate limit duration changed events. Created 3 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Test that removing a media element from the tree while loading does not c rash.</title> 2 <title>Test that removing a media element from the tree while loading does not c rash.</title>
3 <script src="../resources/testharness.js"></script> 3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script> 4 <script src="../resources/testharnessreport.js"></script>
5 <script src="../../media-resources/media-file.js"></script> 5 <script src="../../media-resources/media-file.js"></script>
6 <video></video> 6 <video></video>
7 <script> 7 <script>
8 async_test(function(t) { 8 async_test(function(t) {
9 var video = document.querySelector("video"); 9 var video = document.querySelector("video");
10 10
11 video.onloadedmetadata = t.step_func(function() { 11 video.onloadedmetadata = t.step_func(function() {
12 document.body.removeChild(video); 12 document.body.removeChild(video);
13 setTimeout(t.step_func_done(), 100); 13 setTimeout(t.step_func_done(), 100);
14 }); 14 });
15 15
16 var mediaFile = findMediaFile("video", "content/test"); 16 var mediaFile = findMediaFile("video", "content/test");
17 var mimeType = mimeTypeForFile(mediaFile); 17 var mimeType = mimeTypeForFile(mediaFile);
18 video.src = "http://127.0.0.1:8000/resources/load-and-stall.cgi?name=../../. ./media/" + mediaFile + "&mimeType=" + mimeType + "&stallAt=100000"; 18 video.src = "http://127.0.0.1:8000/resources/load-and-stall.php?name=../../. ./media/" + mediaFile + "&mimeType=" + mimeType + "&stallAt=100000";
19 }); 19 });
20 </script> 20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698