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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 callback(); | 353 callback(); |
354 } | 354 } |
355 } | 355 } |
356 | 356 |
357 InspectorTest.dumpNavigatorView = function(navigatorView) | 357 InspectorTest.dumpNavigatorView = function(navigatorView) |
358 { | 358 { |
359 dumpNavigatorTreeOutline(navigatorView._scriptsTree); | 359 dumpNavigatorTreeOutline(navigatorView._scriptsTree); |
360 | 360 |
361 function dumpNavigatorTreeElement(prefix, treeElement) | 361 function dumpNavigatorTreeElement(prefix, treeElement) |
362 { | 362 { |
363 InspectorTest.addResult(prefix + treeElement.title); | 363 var titleText; |
| 364 if (treeElement.title instanceof Element) |
| 365 titleText = treeElement.title.firstChild.textContent + " [mapped]"; |
| 366 else |
| 367 titleText = treeElement.title; |
| 368 InspectorTest.addResult(prefix + titleText); |
364 treeElement.expand(); | 369 treeElement.expand(); |
365 var children = treeElement.children(); | 370 var children = treeElement.children(); |
366 for (var i = 0; i < children.length; ++i) | 371 for (var i = 0; i < children.length; ++i) |
367 dumpNavigatorTreeElement(prefix + " ", children[i]); | 372 dumpNavigatorTreeElement(prefix + " ", children[i]); |
368 } | 373 } |
369 | 374 |
370 function dumpNavigatorTreeOutline(treeOutline) | 375 function dumpNavigatorTreeOutline(treeOutline) |
371 { | 376 { |
372 var children = treeOutline.rootElement().children(); | 377 var children = treeOutline.rootElement().children(); |
373 for (var i = 0; i < children.length; ++i) | 378 for (var i = 0; i < children.length; ++i) |
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1143 _output("[page] " + text); | 1148 _output("[page] " + text); |
1144 } | 1149 } |
1145 | 1150 |
1146 function _output(result) | 1151 function _output(result) |
1147 { | 1152 { |
1148 if (!outputElement) | 1153 if (!outputElement) |
1149 createOutputElement(); | 1154 createOutputElement(); |
1150 outputElement.appendChild(document.createTextNode(result)); | 1155 outputElement.appendChild(document.createTextNode(result)); |
1151 outputElement.appendChild(document.createElement("br")); | 1156 outputElement.appendChild(document.createElement("br")); |
1152 } | 1157 } |
OLD | NEW |