| Index: third_party/WebKit/LayoutTests/http/tests/inspector/network/network-xhr-same-url-as-main-resource.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-xhr-same-url-as-main-resource.html b/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-xhr-same-url-as-main-resource.html
|
| index 360b5ba2c885ebae4c2ea932d7491d026ddb077e..86860927afc145ba0661b682d5774e6ef441a519 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-xhr-same-url-as-main-resource.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network/network-xhr-same-url-as-main-resource.html
|
| @@ -3,13 +3,27 @@
|
| <script src="../inspector-test.js"></script>
|
| <script src="../network-test.js"></script>
|
| <script>
|
| +function loadIframe()
|
| +{
|
| + iframe = document.createElement("iframe");
|
| + document.body.appendChild(iframe);
|
| + iframe.src = "resources/resource.php";
|
| + console.log("iframe loaded");
|
| +}
|
| +
|
| function test()
|
| {
|
| InspectorTest.recordNetwork();
|
| - InspectorTest.makeSimpleXHR("GET", "network-xhr-same-url-as-main-resource.html", true, step2);
|
| + InspectorTest.addConsoleSniffer(step2);
|
| + InspectorTest.evaluateInPage("loadIframe()");
|
|
|
| function step2()
|
| {
|
| + InspectorTest.makeSimpleXHR("GET", "resources/resource.php", true, step3);
|
| + }
|
| +
|
| + function step3()
|
| + {
|
| var request1 = InspectorTest.networkRequests().pop();
|
| InspectorTest.addResult(request1.resourceType().name());
|
| InspectorTest.completeTest();
|
|
|