| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../http/tests/inspector/elements-test.js"></script> | 4 <script src="../http/tests/inspector/elements-test.js"></script> |
| 5 <script src="../http/tests/inspector/network-test.js"></script> | 5 <script src="../http/tests/inspector/network-test.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 var initialize_TestCustom = function() { | 8 var initialize_TestCustom = function() { |
| 9 | 9 |
| 10 InspectorTest.preloadPanel("elements"); | 10 InspectorTest.preloadPanel("elements"); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 function firstXhrCallback() | 53 function firstXhrCallback() |
| 54 { | 54 { |
| 55 requestWithResource = InspectorTest.networkLog.requestForURL(res
ource.url); | 55 requestWithResource = InspectorTest.networkLog.requestForURL(res
ource.url); |
| 56 InspectorTest.evaluateInPage("loadResource('missing.js')", secon
dXhrCallback); | 56 InspectorTest.evaluateInPage("loadResource('missing.js')", secon
dXhrCallback); |
| 57 } | 57 } |
| 58 | 58 |
| 59 function secondXhrCallback() | 59 function secondXhrCallback() |
| 60 { | 60 { |
| 61 var requests = InspectorTest.networkRequests(); | 61 var requests = InspectorTest.networkRequests(); |
| 62 for (var i = 0; i < requests.length; ++i) { | 62 for (var i = 0; i < requests.length; ++i) { |
| 63 if (requests[i].url.indexOf("missing.js") !== -1) { | 63 if (requests[i].url().indexOf("missing.js") !== -1) { |
| 64 requestWithoutResource = requests[i]; | 64 requestWithoutResource = requests[i]; |
| 65 break; | 65 break; |
| 66 } | 66 } |
| 67 } | 67 } |
| 68 next(); | 68 next(); |
| 69 } | 69 } |
| 70 }, | 70 }, |
| 71 | 71 |
| 72 function revealNode(next) | 72 function revealNode(next) |
| 73 { | 73 { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 InspectorTest.addResult("UILocation " + uiLocation.uiSourceCode.name() +
":" + uiLocation.lineNumber + ":" + uiLocation.columnNumber + " revealed in the
Sources panel"); | 113 InspectorTest.addResult("UILocation " + uiLocation.uiSourceCode.name() +
":" + uiLocation.lineNumber + ":" + uiLocation.columnNumber + " revealed in the
Sources panel"); |
| 114 } | 114 } |
| 115 | 115 |
| 116 function resourceRevealed(resource, lineNumber) | 116 function resourceRevealed(resource, lineNumber) |
| 117 { | 117 { |
| 118 InspectorTest.addResult("Resource " + resource.displayName + " revealed
in the Resources panel"); | 118 InspectorTest.addResult("Resource " + resource.displayName + " revealed
in the Resources panel"); |
| 119 } | 119 } |
| 120 | 120 |
| 121 function revealed(request) | 121 function revealed(request) |
| 122 { | 122 { |
| 123 InspectorTest.addResult("Request " + new Common.ParsedURL(request.url).l
astPathComponent + " revealed in the Network panel"); | 123 InspectorTest.addResult("Request " + new Common.ParsedURL(request.url())
.lastPathComponent + " revealed in the Network panel"); |
| 124 } | 124 } |
| 125 } | 125 } |
| 126 | 126 |
| 127 </script> | 127 </script> |
| 128 </head> | 128 </head> |
| 129 <body onload="runTest()"> | 129 <body onload="runTest()"> |
| 130 <p>Tests object revelation in the UI.</p> | 130 <p>Tests object revelation in the UI.</p> |
| 131 <div id="div" /> | 131 <div id="div" /> |
| 132 </body> | 132 </body> |
| 133 </html> | 133 </html> |
| OLD | NEW |