OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="inspector-test.js"></script> | 3 <script src="../inspector-test.js"></script> |
4 <script src="timeline-test.js"></script> | 4 <script src="../timeline-test.js"></script> |
5 <script src="network-test.js"></script> | 5 <script src="../network-test.js"></script> |
6 <script> | 6 <script> |
7 | 7 |
8 function performActions(callback) | 8 function performActions(callback) |
9 { | 9 { |
10 var xhr = new XMLHttpRequest(); | 10 var xhr = new XMLHttpRequest(); |
11 xhr.responseType = "blob"; | 11 xhr.responseType = "blob"; |
12 xhr.open("GET", "network/resources/resource.php", true); | 12 xhr.open("GET", "network/resources/resource.php", true); |
13 xhr.onload = function() { }; // This is necessary for XHRLoad event. | 13 xhr.onload = function() { }; // This is necessary for XHRLoad event. |
14 // assigning callback to onload doesn't work here due to exception in respon
seXML handling for blob response type. | 14 // assigning callback to onload doesn't work here due to exception in respon
seXML handling for blob response type. |
15 xhr.onreadystatechange = done; | 15 xhr.onreadystatechange = done; |
(...skipping 24 matching lines...) Expand all Loading... |
40 </script> | 40 </script> |
41 </head> | 41 </head> |
42 | 42 |
43 <body onload="runTest()"> | 43 <body onload="runTest()"> |
44 <p> | 44 <p> |
45 Tests the Timeline events for XMLHttpReqeust with responseType="blob" | 45 Tests the Timeline events for XMLHttpReqeust with responseType="blob" |
46 </p> | 46 </p> |
47 | 47 |
48 </body> | 48 </body> |
49 </html> | 49 </html> |
OLD | NEW |