OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="../inspector-test.js"></script> |
| 4 <script src="../network-test.js"></script> |
| 5 <script> |
| 6 |
| 7 function test() |
| 8 { |
| 9 InspectorTest.addSniffer(WebInspector.NetworkDispatcher.prototype, "dataRece
ived", dataReceived); |
| 10 InspectorTest.resetInspectorResourcesData(start); |
| 11 |
| 12 function start() |
| 13 { |
| 14 InspectorTest.makeXHR("GET", "resources/resource.php", true, undefined,
undefined, [], false, undefined, 'blob', function () { }); |
| 15 } |
| 16 |
| 17 function dataReceived(requestId, time, dataLength, encodedDataLength) |
| 18 { |
| 19 var request = WebInspector.networkLog.requestForId(requestId); |
| 20 if (/resource\.php/.exec(request.url)) { |
| 21 InspectorTest.addResult("Received data for resource.php"); |
| 22 InspectorTest.addResult("SUCCESS"); |
| 23 InspectorTest.completeTest(); |
| 24 } |
| 25 } |
| 26 } |
| 27 </script> |
| 28 </head> |
| 29 <body onload="runTest()"> |
| 30 <p>Tests that dataReceived is called on NetworkDispatcher for XHR with responseT
ype='blob'.</p> |
| 31 </body> |
| 32 </html> |
OLD | NEW |