Chromium Code Reviews| Index: LayoutTests/http/tests/inspector/network/network-xhr-data-received-async-response-type-blob.html |
| diff --git a/LayoutTests/http/tests/inspector/network/network-xhr-data-received-async-response-type-blob.html b/LayoutTests/http/tests/inspector/network/network-xhr-data-received-async-response-type-blob.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cc3d3ff81b24732c76a0261941654e442694922d |
| --- /dev/null |
| +++ b/LayoutTests/http/tests/inspector/network/network-xhr-data-received-async-response-type-blob.html |
| @@ -0,0 +1,32 @@ |
| +<html> |
|
vsevik
2013/09/24 13:43:17
I would remove this test. I don't think there is a
yusukesuzuki
2013/09/25 01:43:05
Since didDownloadData is called instead of didRece
|
| +<head> |
| +<script src="../inspector-test.js"></script> |
| +<script src="../network-test.js"></script> |
| +<script> |
| + |
| +function test() |
| +{ |
| + InspectorTest.addSniffer(WebInspector.NetworkDispatcher.prototype, "dataReceived", dataReceived); |
| + InspectorTest.resetInspectorResourcesData(start); |
| + |
| + function start() |
| + { |
| + InspectorTest.makeXHR("GET", "resources/resource.php", true, undefined, undefined, [], false, undefined, 'blob', function () { }); |
| + } |
| + |
| + function dataReceived(requestId, time, dataLength, encodedDataLength) |
| + { |
| + var request = WebInspector.networkLog.requestForId(requestId); |
| + if (/resource\.php/.exec(request.url)) { |
| + InspectorTest.addResult("Received data for resource.php"); |
| + InspectorTest.addResult("SUCCESS"); |
| + InspectorTest.completeTest(); |
| + } |
| + } |
| +} |
| +</script> |
| +</head> |
| +<body onload="runTest()"> |
| +<p>Tests that dataReceived is called on NetworkDispatcher for XHR with responseType='blob'.</p> |
| +</body> |
| +</html> |