| 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/console-test.js"></script> | 4 <script src="../../http/tests/inspector/console-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 src="../../http/tests/inspector/sources-test.js"></script> | 6 <script src="../../http/tests/inspector/sources-test.js"></script> |
| 7 <script src="../../http/tests/inspector/resources-test.js"></script> | 7 <script src="../../http/tests/inspector/resources-test.js"></script> |
| 8 <script src="../../http/tests/inspector/extensions-test.js"></script> | 8 <script src="../../http/tests/inspector/extensions-test.js"></script> |
| 9 <script type="text/javascript"> | 9 <script type="text/javascript"> |
| 10 function logMessage() | 10 function logMessage() |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 InspectorTest.installShowResourceLocationHooks = function() | 86 InspectorTest.installShowResourceLocationHooks = function() |
| 87 { | 87 { |
| 88 function showURL(panelName, url, lineNumber) | 88 function showURL(panelName, url, lineNumber) |
| 89 { | 89 { |
| 90 var url = url.replace(/^.*(([/][^/]*){3}[^/)]*)$/, "...$1"); | 90 var url = url.replace(/^.*(([/][^/]*){3}[^/)]*)$/, "...$1"); |
| 91 InspectorTest.addResult("Showing resource " + url + " in panel " + p
anelName + "), line: " + lineNumber); | 91 InspectorTest.addResult("Showing resource " + url + " in panel " + p
anelName + "), line: " + lineNumber); |
| 92 } | 92 } |
| 93 InspectorTest.recordNetwork(); | 93 InspectorTest.recordNetwork(); |
| 94 InspectorTest.addSniffer(UI.panels.sources, "showUILocation", showUILoca
tionHook, true); | 94 InspectorTest.addSniffer(UI.panels.sources, "showUILocation", showUILoca
tionHook, true); |
| 95 InspectorTest.addSniffer(UI.panels.resources, "showResource", showResour
ceHook, true); | 95 InspectorTest.addSniffer(UI.panels.resources._sidebar, "showResource", s
howResourceHook, true); |
| 96 InspectorTest.addSniffer(UI.panels.network, "revealAndHighlightRequest",
showRequestHook, true); | 96 InspectorTest.addSniffer(UI.panels.network, "revealAndHighlightRequest",
showRequestHook, true); |
| 97 | 97 |
| 98 function showUILocationHook(uiLocation) | 98 function showUILocationHook(uiLocation) |
| 99 { | 99 { |
| 100 showURL("sources", uiLocation.uiSourceCode.url(), uiLocation.lineNum
ber); | 100 showURL("sources", uiLocation.uiSourceCode.url(), uiLocation.lineNum
ber); |
| 101 } | 101 } |
| 102 | 102 |
| 103 function showResourceHook(resource, lineNumber) | 103 function showResourceHook(resource, lineNumber) |
| 104 { | 104 { |
| 105 showURL("resources", resource.url, lineNumber); | 105 showURL("resources", resource.url, lineNumber); |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 var img = document.createElement("img"); | 341 var img = document.createElement("img"); |
| 342 img.src = "resources/abe.png"; | 342 img.src = "resources/abe.png"; |
| 343 document.body.appendChild(img); | 343 document.body.appendChild(img); |
| 344 } | 344 } |
| 345 </script> | 345 </script> |
| 346 </head> | 346 </head> |
| 347 <body onload="runTest()"> | 347 <body onload="runTest()"> |
| 348 <p>Tests WebInspector extension API</p> | 348 <p>Tests WebInspector extension API</p> |
| 349 </body> | 349 </body> |
| 350 </html> | 350 </html> |
| OLD | NEW |