| Index: LayoutTests/http/tests/inspector/network/network-xhr-response-received-async-response-type-blob.html
|
| diff --git a/LayoutTests/http/tests/inspector/network/network-xhr-response-received-async-response-type-blob.html b/LayoutTests/http/tests/inspector/network/network-xhr-response-received-async-response-type-blob.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f193463a07d67cee6667ccaf8a058b3fe816a6cf
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/inspector/network/network-xhr-response-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, "responseReceived", responseReceived);
|
| + InspectorTest.resetInspectorResourcesData(start);
|
| +
|
| + function start()
|
| + {
|
| + InspectorTest.makeXHR("GET", "resources/resource.php", true, undefined, undefined, [], false, undefined, 'blob', function () { });
|
| + }
|
| +
|
| + function responseReceived(requestId, frameId, loaderId, time, resourceType, response)
|
| + {
|
| + var request = WebInspector.networkLog.requestForId(requestId);
|
| + if (/resource\.php/.exec(request.url)) {
|
| + InspectorTest.addResult("Received response for resource.php");
|
| + InspectorTest.assertEquals('XHR', resourceType, 'resourceType should be XHR');
|
| + InspectorTest.addResult("SUCCESS");
|
| + InspectorTest.completeTest();
|
| + }
|
| + }
|
| +}
|
| +</script>
|
| +</head>
|
| +<body onload="runTest()">
|
| +<p>Tests that responseReceived is called on NetworkDispatcher for XHR with responseType='blob'.</p>
|
| +</body>
|
| +</html>
|
|
|