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

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

Issue 23464028: Add the responseType parameter to InspectorTest.makeXHR (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 months 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-async-response-type-blob.html
diff --git a/LayoutTests/http/tests/inspector/network/network-xhr-sync.html b/LayoutTests/http/tests/inspector/network/network-xhr-async-response-type-blob.html
similarity index 56%
copy from LayoutTests/http/tests/inspector/network/network-xhr-sync.html
copy to LayoutTests/http/tests/inspector/network/network-xhr-async-response-type-blob.html
index ef1f091e1946e368bf6b71df12e7ae1e27a2d7a0..4379adb92bf4808fb7aa0517c1f0694f774390c6 100644
--- a/LayoutTests/http/tests/inspector/network/network-xhr-sync.html
+++ b/LayoutTests/http/tests/inspector/network/network-xhr-async-response-type-blob.html
@@ -11,7 +11,7 @@ function test()
function step1()
{
- InspectorTest.makeSimpleXHR("GET", "resources/resource.php", false, step2);
+ InspectorTest.makeXHR("GET", "resources/resource.php", true, undefined, undefined, [], false, undefined, 'blob', step2);
}
function step2()
@@ -19,16 +19,8 @@ function test()
var request1 = WebInspector.panel("network").requests[WebInspector.panel("network").requests.length - 1];
InspectorTest.addResult(request1.url);
InspectorTest.addResult("resource.type: " + request1.type);
- InspectorTest.addResult("resource.content before requesting content: " + request1.content);
+ InspectorTest.addResult("resource.size: " + request1.resourceSize);
InspectorTest.assertTrue(!request1.failed, "Resource loading failed.");
- request1.requestContent(step3);
- }
-
- function step3()
- {
- var request1 = WebInspector.panel("network").requests[WebInspector.panel("network").requests.length - 1];
- InspectorTest.addResult("resource.content after requesting content: " + request1.content);
-
InspectorTest.completeTest();
}
}
@@ -36,8 +28,7 @@ function test()
</head>
<body onload="runTest()">
<p>
- Tests XHR network resource type and content for synchronous requests.
-<a href="https://bugs.webkit.org/show_bug.cgi?id=61205">Bug 61205</a>
+ Tests XHR network resource type and size for asynchronous requests when 'blob' is specified as the response type.
</p>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698