OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../inspector-test.js"></script> | 3 <script src="../inspector-test.js"></script> |
4 <script src="../network-test.js"></script> | 4 <script src="../network-test.js"></script> |
5 <script> | 5 <script> |
6 function test() | 6 function test() |
7 { | 7 { |
8 InspectorTest.makeSimpleXHR("GET", "resources/resource.php", false, step2); | 8 InspectorTest.makeSimpleXHR("GET", "resources/resource.php", false, step2); |
9 | 9 |
10 function step2() | 10 function step2() |
11 { | 11 { |
12 var resource = WebInspector.resourceTreeModel.resourceForURL("http://127
.0.0.1:8000/inspector/resource-tree/resources/resource.php"); | 12 var resource = InspectorTest.resourceTreeModel.resourceForURL("http://12
7.0.0.1:8000/inspector/resource-tree/resources/resource.php"); |
13 InspectorTest.assertTrue(!resource, "XHR resource should not be added to
resourceTreeModel."); | 13 InspectorTest.assertTrue(!resource, "XHR resource should not be added to
resourceTreeModel."); |
14 InspectorTest.completeTest(); | 14 InspectorTest.completeTest(); |
15 } | 15 } |
16 } | 16 } |
17 </script> | 17 </script> |
18 </head> | 18 </head> |
19 <body onload="runTest()"> | 19 <body onload="runTest()"> |
20 <p>Tests that XHRs are not added to resourceTreeModel.</p> | 20 <p>Tests that XHRs are not added to resourceTreeModel.</p> |
21 <a href="https://bugs.webkit.org/show_bug.cgi?id=60321">Bug 60321</a> | 21 <a href="https://bugs.webkit.org/show_bug.cgi?id=60321">Bug 60321</a> |
22 </body> | 22 </body> |
23 </html> | 23 </html> |
OLD | NEW |