| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 } | 113 } |
| 114 } | 114 } |
| 115 | 115 |
| 116 InspectorTest.switchToLastPanel = function() | 116 InspectorTest.switchToLastPanel = function() |
| 117 { | 117 { |
| 118 var lastPanelName = WebInspector.inspectorView._tabbedPane._tabs.peekLas
t().id; | 118 var lastPanelName = WebInspector.inspectorView._tabbedPane._tabs.peekLas
t().id; |
| 119 return WebInspector.inspectorView.showPanel(lastPanelName); | 119 return WebInspector.inspectorView.showPanel(lastPanelName); |
| 120 } | 120 } |
| 121 } | 121 } |
| 122 | 122 |
| 123 function extension_testThemeName(nextTest) |
| 124 { |
| 125 output("Theme name: " + webInspector.panels.themeName); |
| 126 nextTest(); |
| 127 } |
| 128 |
| 123 function extension_testCreatePanel(nextTest) | 129 function extension_testCreatePanel(nextTest) |
| 124 { | 130 { |
| 125 var expectOnShown = false; | 131 var expectOnShown = false; |
| 126 | 132 |
| 127 function onPanelShown(panel, window) | 133 function onPanelShown(panel, window) |
| 128 { | 134 { |
| 129 if (!expectOnShown) { | 135 if (!expectOnShown) { |
| 130 output("FAIL: unexpected onShown event"); | 136 output("FAIL: unexpected onShown event"); |
| 131 nextTest(); | 137 nextTest(); |
| 132 return; | 138 return; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 dumpObject(Array.prototype.slice.call(arguments)); | 214 dumpObject(Array.prototype.slice.call(arguments)); |
| 209 callbackCount++; | 215 callbackCount++; |
| 210 if (callbackCount === 2) { | 216 if (callbackCount === 2) { |
| 211 nextTest(); | 217 nextTest(); |
| 212 panel.onSearch.removeListener(callback); | 218 panel.onSearch.removeListener(callback); |
| 213 } | 219 } |
| 214 }; | 220 }; |
| 215 panel.onSearch.addListener(callback); | 221 panel.onSearch.addListener(callback); |
| 216 | 222 |
| 217 extension_showPanel("extension"); | 223 extension_showPanel("extension"); |
| 218 | 224 |
| 219 function performSearch(query) | 225 function performSearch(query) |
| 220 { | 226 { |
| 221 var panel = WebInspector.inspectorView.currentPanel(); | 227 var panel = WebInspector.inspectorView.currentPanel(); |
| 222 panel.searchableView().showSearchField(); | 228 panel.searchableView().showSearchField(); |
| 223 panel.searchableView()._searchInputElement.value = query; | 229 panel.searchableView()._searchInputElement.value = query; |
| 224 panel.searchableView()._performSearch(true, true); | 230 panel.searchableView()._performSearch(true, true); |
| 225 panel.searchableView().cancelSearch(); | 231 panel.searchableView().cancelSearch(); |
| 226 } | 232 } |
| 227 | 233 |
| 228 evaluateOnFrontend(performSearch.toString() + " performSearch(\"hello\")
;"); | 234 evaluateOnFrontend(performSearch.toString() + " performSearch(\"hello\")
;"); |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 var img = document.createElement("img"); | 347 var img = document.createElement("img"); |
| 342 img.src = "resources/abe.png"; | 348 img.src = "resources/abe.png"; |
| 343 document.body.appendChild(img); | 349 document.body.appendChild(img); |
| 344 } | 350 } |
| 345 </script> | 351 </script> |
| 346 </head> | 352 </head> |
| 347 <body onload="runTest()"> | 353 <body onload="runTest()"> |
| 348 <p>Tests WebInspector extension API</p> | 354 <p>Tests WebInspector extension API</p> |
| 349 </body> | 355 </body> |
| 350 </html> | 356 </html> |
| OLD | NEW |