Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(358)

Unified Diff: LayoutTests/http/tests/inspector/network/network-xhr-data-received-async-response-type-blob.html

Issue 23444058: Use downloadToFile option when XHR downloads a Blob (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase test style and XHR Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698