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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/infoOnProgressEvent-response-type-blob.html

Issue 23444058: Use downloadToFile option when XHR downloads a Blob (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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 <body> 3 <body>
4 <p> Test case for bug 13596: Implement .onprogress handler on XMLHttpRequest obj ects to support progressive download content length information </p> 4 <p> .onprogress handler on XMLHttpRequest objects with response type 'blob' work s to support progressive download content length information </p>
5 <p> You should see type, bubble, cancelable, eventPhase, target and current targ et.</p> 5 <p> You should see type, bubble, cancelable, eventPhase, target and current targ et.</p>
6 <script type="text/javascript"> 6 <script type="text/javascript">
7 function log (msg) 7 function log (msg)
8 { 8 {
9 document.body.appendChild(document.createTextNode(msg)); 9 document.body.appendChild(document.createTextNode(msg));
10 insertNewLine(); 10 insertNewLine();
11 } 11 }
12 12
13 function insertNewLine() 13 function insertNewLine()
14 { 14 {
(...skipping 17 matching lines...) Expand all
32 } 32 }
33 33
34 var shouldNotify = false; 34 var shouldNotify = false;
35 35
36 if (window.testRunner) { 36 if (window.testRunner) {
37 testRunner.dumpAsText(); 37 testRunner.dumpAsText();
38 testRunner.waitUntilDone(); 38 testRunner.waitUntilDone();
39 } 39 }
40 40
41 var req = new XMLHttpRequest(); 41 var req = new XMLHttpRequest();
42 req.responseType = 'blob';
42 req.onprogress = onProgress; 43 req.onprogress = onProgress;
43 req.open("GET", "resources/1251.html", true); 44 req.open("GET", "resources/get.txt", true);
44 req.send(null); 45 req.send(null);
45 </script> 46 </script>
46 </body> 47 </body>
47 </html> 48 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698