| 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..22a2c4450c030bfd4e1defd2ad4a185ea909a2b3
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/inspector/network/network-xhr-data-received-async-response-type-blob.html
|
| @@ -0,0 +1,33 @@
|
| +<html>
|
| +<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.recordNetwork();
|
| + 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>
|
|
|