OLD | NEW |
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 Loading... |
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> |
OLD | NEW |