| 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 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 return buffer.replace(/\s*at[^()]+\(native\)/g, ""); | 739 return buffer.replace(/\s*at[^()]+\(native\)/g, ""); |
| 740 } | 740 } |
| 741 | 741 |
| 742 InspectorTest.hideInspectorView = function() | 742 InspectorTest.hideInspectorView = function() |
| 743 { | 743 { |
| 744 WebInspector.inspectorView.element.setAttribute("style", "display:none !impo
rtant"); | 744 WebInspector.inspectorView.element.setAttribute("style", "display:none !impo
rtant"); |
| 745 } | 745 } |
| 746 | 746 |
| 747 InspectorTest.mainFrame = function() | 747 InspectorTest.mainFrame = function() |
| 748 { | 748 { |
| 749 return InspectorTest.mainTarget.resourceTreeModel.mainFrame; | 749 return WebInspector.ResourceTreeModel.fromTarget(InspectorTest.mainTarget).m
ainFrame; |
| 750 } | 750 } |
| 751 | 751 |
| 752 InspectorTest.StringOutputStream = function(callback) | 752 InspectorTest.StringOutputStream = function(callback) |
| 753 { | 753 { |
| 754 this._callback = callback; | 754 this._callback = callback; |
| 755 this._buffer = ""; | 755 this._buffer = ""; |
| 756 }; | 756 }; |
| 757 | 757 |
| 758 InspectorTest.StringOutputStream.prototype = { | 758 InspectorTest.StringOutputStream.prototype = { |
| 759 open: function(fileName, callback) | 759 open: function(fileName, callback) |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 956 InspectorTest.InspectorAgent = target.inspectorAgent(); | 956 InspectorTest.InspectorAgent = target.inspectorAgent(); |
| 957 InspectorTest.LayerTreeAgent = target.layerTreeAgent(); | 957 InspectorTest.LayerTreeAgent = target.layerTreeAgent(); |
| 958 InspectorTest.NetworkAgent = target.networkAgent(); | 958 InspectorTest.NetworkAgent = target.networkAgent(); |
| 959 InspectorTest.PageAgent = target.pageAgent(); | 959 InspectorTest.PageAgent = target.pageAgent(); |
| 960 InspectorTest.ProfilerAgent = target.profilerAgent(); | 960 InspectorTest.ProfilerAgent = target.profilerAgent(); |
| 961 InspectorTest.RuntimeAgent = target.runtimeAgent(); | 961 InspectorTest.RuntimeAgent = target.runtimeAgent(); |
| 962 InspectorTest.WorkerAgent = target.workerAgent(); | 962 InspectorTest.WorkerAgent = target.workerAgent(); |
| 963 | 963 |
| 964 InspectorTest.consoleModel = target.consoleModel; | 964 InspectorTest.consoleModel = target.consoleModel; |
| 965 InspectorTest.networkManager = WebInspector.NetworkManager.fromTarget(ta
rget); | 965 InspectorTest.networkManager = WebInspector.NetworkManager.fromTarget(ta
rget); |
| 966 InspectorTest.resourceTreeModel = target.resourceTreeModel; | 966 InspectorTest.resourceTreeModel = WebInspector.ResourceTreeModel.fromTar
get(target); |
| 967 InspectorTest.networkLog = WebInspector.NetworkLog.fromTarget(target); | 967 InspectorTest.networkLog = WebInspector.NetworkLog.fromTarget(target); |
| 968 InspectorTest.debuggerModel = WebInspector.DebuggerModel.fromTarget(targ
et); | 968 InspectorTest.debuggerModel = WebInspector.DebuggerModel.fromTarget(targ
et); |
| 969 InspectorTest.runtimeModel = target.runtimeModel; | 969 InspectorTest.runtimeModel = target.runtimeModel; |
| 970 InspectorTest.domModel = WebInspector.DOMModel.fromTarget(target); | 970 InspectorTest.domModel = WebInspector.DOMModel.fromTarget(target); |
| 971 InspectorTest.cssModel = WebInspector.CSSModel.fromTarget(target); | 971 InspectorTest.cssModel = WebInspector.CSSModel.fromTarget(target); |
| 972 InspectorTest.workerManager = target.workerManager; | 972 InspectorTest.workerManager = target.workerManager; |
| 973 InspectorTest.powerProfiler = target.powerProfiler; | 973 InspectorTest.powerProfiler = target.powerProfiler; |
| 974 InspectorTest.cpuProfilerModel = target.cpuProfilerModel; | 974 InspectorTest.cpuProfilerModel = target.cpuProfilerModel; |
| 975 InspectorTest.heapProfilerModel = target.heapProfilerModel; | 975 InspectorTest.heapProfilerModel = target.heapProfilerModel; |
| 976 InspectorTest.animationModel = target.animationModel; | 976 InspectorTest.animationModel = target.animationModel; |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1213 _output("[page] " + text); | 1213 _output("[page] " + text); |
| 1214 } | 1214 } |
| 1215 | 1215 |
| 1216 function _output(result) | 1216 function _output(result) |
| 1217 { | 1217 { |
| 1218 if (!outputElement) | 1218 if (!outputElement) |
| 1219 createOutputElement(); | 1219 createOutputElement(); |
| 1220 outputElement.appendChild(document.createTextNode(result)); | 1220 outputElement.appendChild(document.createTextNode(result)); |
| 1221 outputElement.appendChild(document.createElement("br")); | 1221 outputElement.appendChild(document.createElement("br")); |
| 1222 } | 1222 } |
| OLD | NEW |