| OLD | NEW |
| 1 if (window.GCController) | 1 if (window.GCController) |
| 2 GCController.collectAll(); | 2 GCController.collectAll(); |
| 3 var initialize_InspectorTest = function() { | 3 var initialize_InspectorTest = function() { |
| 4 | 4 |
| 5 var results = []; | 5 var results = []; |
| 6 | 6 |
| 7 function consoleOutputHook(messageType) | 7 function consoleOutputHook(messageType) |
| 8 { | 8 { |
| 9 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu
ments, 1)); | 9 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu
ments, 1)); |
| 10 } | 10 } |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 InspectorTest.addResult("== " + listenerItems[j].eventListener()
.listenerType()); | 347 InspectorTest.addResult("== " + listenerItems[j].eventListener()
.listenerType()); |
| 348 InspectorTest.dumpObjectPropertyTreeElement(listenerItems[j]); | 348 InspectorTest.dumpObjectPropertyTreeElement(listenerItems[j]); |
| 349 } | 349 } |
| 350 } | 350 } |
| 351 callback(); | 351 callback(); |
| 352 } | 352 } |
| 353 | 353 |
| 354 if (force) | 354 if (force) |
| 355 listenersArrived(); | 355 listenersArrived(); |
| 356 else | 356 else |
| 357 InspectorTest.addSniffer(Components.EventListenersView.prototype, "_even
tListenersArrivedForTest", listenersArrived); | 357 InspectorTest.addSniffer(JS_UI.EventListenersView.prototype, "_eventList
enersArrivedForTest", listenersArrived); |
| 358 } | 358 } |
| 359 | 359 |
| 360 InspectorTest.dumpNavigatorView = function(navigatorView, dumpIcons) | 360 InspectorTest.dumpNavigatorView = function(navigatorView, dumpIcons) |
| 361 { | 361 { |
| 362 dumpNavigatorTreeOutline(navigatorView._scriptsTree); | 362 dumpNavigatorTreeOutline(navigatorView._scriptsTree); |
| 363 | 363 |
| 364 function dumpNavigatorTreeElement(prefix, treeElement) | 364 function dumpNavigatorTreeElement(prefix, treeElement) |
| 365 { | 365 { |
| 366 var titleText = ''; | 366 var titleText = ''; |
| 367 if (treeElement._leadingIconsElement && dumpIcons) { | 367 if (treeElement._leadingIconsElement && dumpIcons) { |
| (...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1225 _output("[page] " + text); | 1225 _output("[page] " + text); |
| 1226 } | 1226 } |
| 1227 | 1227 |
| 1228 function _output(result) | 1228 function _output(result) |
| 1229 { | 1229 { |
| 1230 if (!outputElement) | 1230 if (!outputElement) |
| 1231 createOutputElement(); | 1231 createOutputElement(); |
| 1232 outputElement.appendChild(document.createTextNode(result)); | 1232 outputElement.appendChild(document.createTextNode(result)); |
| 1233 outputElement.appendChild(document.createElement("br")); | 1233 outputElement.appendChild(document.createElement("br")); |
| 1234 } | 1234 } |
| OLD | NEW |