OLD | NEW |
1 var initialize_InspectorTest = function() { | 1 var initialize_InspectorTest = function() { |
2 | 2 |
3 var results = []; | 3 var results = []; |
4 | 4 |
5 function consoleOutputHook(messageType) | 5 function consoleOutputHook(messageType) |
6 { | 6 { |
7 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu
ments, 1)); | 7 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu
ments, 1)); |
8 } | 8 } |
9 | 9 |
10 window._originalConsoleLog = console.log.bind(console); | 10 window._originalConsoleLog = console.log.bind(console); |
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 InspectorTest.workerManager = target.workerManager; | 840 InspectorTest.workerManager = target.workerManager; |
841 InspectorTest.powerProfiler = target.powerProfiler; | 841 InspectorTest.powerProfiler = target.powerProfiler; |
842 InspectorTest.cpuProfilerModel = target.cpuProfilerModel; | 842 InspectorTest.cpuProfilerModel = target.cpuProfilerModel; |
843 InspectorTest.heapProfilerModel = target.heapProfilerModel; | 843 InspectorTest.heapProfilerModel = target.heapProfilerModel; |
844 InspectorTest.layerTreeModel = target.layerTreeModel; | 844 InspectorTest.layerTreeModel = target.layerTreeModel; |
845 InspectorTest.animationModel = target.animationModel; | 845 InspectorTest.animationModel = target.animationModel; |
846 InspectorTest.serviceWorkerCacheModel = target.serviceWorkerCacheModel; | 846 InspectorTest.serviceWorkerCacheModel = target.serviceWorkerCacheModel; |
847 InspectorTest.serviceWorkerManager = target.serviceWorkerManager; | 847 InspectorTest.serviceWorkerManager = target.serviceWorkerManager; |
848 InspectorTest.tracingManager = target.tracingManager; | 848 InspectorTest.tracingManager = target.tracingManager; |
849 InspectorTest.mainTarget = target; | 849 InspectorTest.mainTarget = target; |
| 850 InspectorTest.connection = target._connection; |
850 }, | 851 }, |
851 | 852 |
852 targetRemoved: function(target) { } | 853 targetRemoved: function(target) { } |
853 }); | 854 }); |
854 | 855 |
855 InspectorTest._panelsToPreload = []; | 856 InspectorTest._panelsToPreload = []; |
856 | 857 |
857 InspectorTest.preloadPanel = function(panelName) | 858 InspectorTest.preloadPanel = function(panelName) |
858 { | 859 { |
859 InspectorTest._panelsToPreload.push(panelName); | 860 InspectorTest._panelsToPreload.push(panelName); |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1069 _output("[page] " + text); | 1070 _output("[page] " + text); |
1070 } | 1071 } |
1071 | 1072 |
1072 function _output(result) | 1073 function _output(result) |
1073 { | 1074 { |
1074 if (!outputElement) | 1075 if (!outputElement) |
1075 createOutputElement(); | 1076 createOutputElement(); |
1076 outputElement.appendChild(document.createTextNode(result)); | 1077 outputElement.appendChild(document.createTextNode(result)); |
1077 outputElement.appendChild(document.createElement("br")); | 1078 outputElement.appendChild(document.createElement("br")); |
1078 } | 1079 } |
OLD | NEW |