| Index: LayoutTests/http/tests/inspector/network/network-xhr-async-response-type-blob.html
|
| diff --git a/LayoutTests/http/tests/inspector/network/network-xhr-async-response-type-blob.html b/LayoutTests/http/tests/inspector/network/network-xhr-async-response-type-blob.html
|
| index 4379adb92bf4808fb7aa0517c1f0694f774390c6..e605c1336d635cde5a8536d1b952b8c375c1ed2e 100644
|
| --- a/LayoutTests/http/tests/inspector/network/network-xhr-async-response-type-blob.html
|
| +++ b/LayoutTests/http/tests/inspector/network/network-xhr-async-response-type-blob.html
|
| @@ -9,6 +9,8 @@ function test()
|
| // tests, we need to reset size limits to default ones.
|
| InspectorTest.resetInspectorResourcesData(step1);
|
|
|
| + var request1 = null;
|
| +
|
| function step1()
|
| {
|
| InspectorTest.makeXHR("GET", "resources/resource.php", true, undefined, undefined, [], false, undefined, 'blob', step2);
|
| @@ -16,11 +18,19 @@ function test()
|
|
|
| function step2()
|
| {
|
| - var request1 = WebInspector.panel("network").requests[WebInspector.panel("network").requests.length - 1];
|
| + request1 = WebInspector.panel("network").requests[WebInspector.panel("network").requests.length - 1];
|
| InspectorTest.addResult(request1.url);
|
| InspectorTest.addResult("resource.type: " + request1.type);
|
| InspectorTest.addResult("resource.size: " + request1.resourceSize);
|
| + InspectorTest.addResult("resource.content before requesting content: " + request1.content);
|
| InspectorTest.assertTrue(!request1.failed, "Resource loading failed.");
|
| + request1.requestContent(step3);
|
| + }
|
| +
|
| + function step3()
|
| + {
|
| + InspectorTest.addResult("resource.content after requesting content: " + request1.content);
|
| +
|
| InspectorTest.completeTest();
|
| }
|
| }
|
| @@ -28,7 +38,7 @@ function test()
|
| </head>
|
| <body onload="runTest()">
|
| <p>
|
| - Tests XHR network resource type and size for asynchronous requests when 'blob' is specified as the response type.
|
| + Tests XHR network resource type, size and content for asynchronous requests when 'blob' is specified as the response type.
|
| </p>
|
| </body>
|
| </html>
|
|
|