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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/media/video-throttled-load-metadata.html

Issue 1509663003: make multibuffer work with layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media_cache.integrate3
Patch Set: merged & formatted Created 5 years 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
« no previous file with comments | « media/blink/webmediaplayer_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <title>throttled loading metadata</title> 3 <title>throttled loading metadata</title>
4 <script src="../../media-resources/media-file.js"></script> 4 <script src="../../media-resources/media-file.js"></script>
5 <script src="../../media-resources/video-test.js"></script> 5 <script src="../../media-resources/video-test.js"></script>
6 <script> 6 <script>
7 function loadedmetadata(e) 7 function loadedmetadata(e)
8 { 8 {
9 logResult(true, "loaded metadata of media file"); 9 logResult(true, "loaded metadata of media file");
10 endTest(); 10 endTest();
(...skipping 14 matching lines...) Expand all
25 testExpected("video.error", null); 25 testExpected("video.error", null);
26 26
27 var worker = new Worker("video-throttled-load-metadata-worker.js"); 27 var worker = new Worker("video-throttled-load-metadata-worker.js");
28 worker.onmessage = function (event) { 28 worker.onmessage = function (event) {
29 logResult(true, event.data); 29 logResult(true, event.data);
30 } 30 }
31 31
32 // Use a .webm to ensure metadata is near the beginning of the file. 32 // Use a .webm to ensure metadata is near the beginning of the file.
33 var mediaFile = "resources/media-source/webm/test.webm"; 33 var mediaFile = "resources/media-source/webm/test.webm";
34 video.src = "http://127.0.0.1:8000/media/video-throttled-load.cgi?" + 34 video.src = "http://127.0.0.1:8000/media/video-throttled-load.cgi?" +
35 "nph=1&name=" + mediaFile + "&throttle=40&type=video/webm"; 35 "nph=1&name=" + mediaFile + "&throttle=40&type=video/webm" +
36 "avoidCache=" + Math.random();
36 37
37 video.load(); 38 video.load();
38 } 39 }
39 </script> 40 </script>
40 </head> 41 </head>
41 <body onload="start()"> 42 <body onload="start()">
42 <video id="video"></video> 43 <video id="video"></video>
43 <p> 44 <p>
44 This test case simulates a slow network, and starts a web worker thread to write a log message 45 This test case simulates a slow network, and starts a web worker thread to write a log message
45 when retrieving media metadata to see if the webkit thread is blocked by media r etrieving thread.<br> 46 when retrieving media metadata to see if the webkit thread is blocked by media r etrieving thread.<br>
46 This test case is for <a href="https://bugs.webkit.org/show_bug.cgi?id=80978">ht tps://bugs.webkit.org/show_bug.cgi?id=80978</a> 47 This test case is for <a href="https://bugs.webkit.org/show_bug.cgi?id=80978">ht tps://bugs.webkit.org/show_bug.cgi?id=80978</a>
47 </p> 48 </p>
48 </body> 49 </body>
49 </html> 50 </html>
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698