| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 // This is not authorized and therefore should not produce any output | 185 // This is not authorized and therefore should not produce any output |
| 186 panel.show(); | 186 panel.show(); |
| 187 extension_showPanel("console"); | 187 extension_showPanel("console"); |
| 188 | 188 |
| 189 function handleOpenResource(resource, lineNumber) | 189 function handleOpenResource(resource, lineNumber) |
| 190 { | 190 { |
| 191 // This will force extension iframe to be really loaded. | 191 // This will force extension iframe to be really loaded. |
| 192 panel.show(); | 192 panel.show(); |
| 193 } | 193 } |
| 194 webInspector.panels.setOpenResourceHandler(handleOpenResource); | 194 webInspector.panels.setOpenResourceHandler(handleOpenResource); |
| 195 evaluateOnFrontend("Components.openAnchorLocationRegistry._activeHandler
= 'test extension'"); | 195 evaluateOnFrontend("Components.Linkifier._linkHandlerSetting().set('test
extension')"); |
| 196 evaluateOnFrontend("InspectorTest.logMessageAndClickOnURL();"); | 196 evaluateOnFrontend("InspectorTest.logMessageAndClickOnURL();"); |
| 197 expectOnShown = true; | 197 expectOnShown = true; |
| 198 } | 198 } |
| 199 var basePath = location.pathname.replace(/\/[^/]*$/, "/"); | 199 var basePath = location.pathname.replace(/\/[^/]*$/, "/"); |
| 200 webInspector.panels.create("Test Panel", basePath + "extension-panel.png", b
asePath + "extension-panel.html", onPanelCreated); | 200 webInspector.panels.create("Test Panel", basePath + "extension-panel.png", b
asePath + "extension-panel.html", onPanelCreated); |
| 201 } | 201 } |
| 202 | 202 |
| 203 function extension_testSearch(nextTest) | 203 function extension_testSearch(nextTest) |
| 204 { | 204 { |
| 205 var callbackCount = 0; | 205 var callbackCount = 0; |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 var img = document.createElement("img"); | 338 var img = document.createElement("img"); |
| 339 img.src = "resources/abe.png"; | 339 img.src = "resources/abe.png"; |
| 340 document.body.appendChild(img); | 340 document.body.appendChild(img); |
| 341 } | 341 } |
| 342 </script> | 342 </script> |
| 343 </head> | 343 </head> |
| 344 <body onload="runTest()"> | 344 <body onload="runTest()"> |
| 345 <p>Tests WebInspector extension API</p> | 345 <p>Tests WebInspector extension API</p> |
| 346 </body> | 346 </body> |
| 347 </html> | 347 </html> |
| OLD | NEW |