| 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.recordNetwork(); | 8 InspectorTest.recordNetwork(); |
| 9 InspectorTest.makeSimpleXHR("GET", "network-xhr-same-url-as-main-resource.ht
ml", true, step2); | 9 InspectorTest.makeSimpleXHR("GET", "network-xhr-same-url-as-main-resource.ht
ml", true, step2); |
| 10 | 10 |
| 11 function step2() | 11 function step2() |
| 12 { | 12 { |
| 13 var request1 = InspectorTest.networkRequests().pop(); | 13 var request1 = InspectorTest.networkRequests().pop(); |
| 14 InspectorTest.addResult(request1.type.name()); | 14 InspectorTest.addResult(request1.resourceType().name()); |
| 15 InspectorTest.completeTest(); | 15 InspectorTest.completeTest(); |
| 16 } | 16 } |
| 17 } | 17 } |
| 18 </script> | 18 </script> |
| 19 </head> | 19 </head> |
| 20 <body onload="runTest()"> | 20 <body onload="runTest()"> |
| 21 <p>Tests that XHRs with the same url as a main resource have correct category.</
p> | 21 <p>Tests that XHRs with the same url as a main resource have correct category.</
p> |
| 22 <a href="https://bugs.webkit.org/show_bug.cgi?id=68648">Bug 68648</a> | 22 <a href="https://bugs.webkit.org/show_bug.cgi?id=68648">Bug 68648</a> |
| 23 </body> | 23 </body> |
| 24 </html> | 24 </html> |
| OLD | NEW |