| 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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 return buffer.replace(/\s*at[^()]+\(native\)/g, ""); | 671 return buffer.replace(/\s*at[^()]+\(native\)/g, ""); |
| 672 } | 672 } |
| 673 | 673 |
| 674 InspectorTest.hideInspectorView = function() | 674 InspectorTest.hideInspectorView = function() |
| 675 { | 675 { |
| 676 WebInspector.inspectorView.element.setAttribute("style", "display:none !impo
rtant"); | 676 WebInspector.inspectorView.element.setAttribute("style", "display:none !impo
rtant"); |
| 677 } | 677 } |
| 678 | 678 |
| 679 InspectorTest.mainFrame = function() | 679 InspectorTest.mainFrame = function() |
| 680 { | 680 { |
| 681 return InspectorTest.mainTarget.resourceTreeModel.mainFrame; | 681 return WebInspector.ResourceTreeModel.fromTarget(InspectorTest.mainTarget).m
ainFrame; |
| 682 } | 682 } |
| 683 | 683 |
| 684 InspectorTest.StringOutputStream = function(callback) | 684 InspectorTest.StringOutputStream = function(callback) |
| 685 { | 685 { |
| 686 this._callback = callback; | 686 this._callback = callback; |
| 687 this._buffer = ""; | 687 this._buffer = ""; |
| 688 }; | 688 }; |
| 689 | 689 |
| 690 InspectorTest.StringOutputStream.prototype = { | 690 InspectorTest.StringOutputStream.prototype = { |
| 691 open: function(fileName, callback) | 691 open: function(fileName, callback) |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 888 InspectorTest.LayerTreeAgent = target.layerTreeAgent(); | 888 InspectorTest.LayerTreeAgent = target.layerTreeAgent(); |
| 889 InspectorTest.NetworkAgent = target.networkAgent(); | 889 InspectorTest.NetworkAgent = target.networkAgent(); |
| 890 InspectorTest.PageAgent = target.pageAgent(); | 890 InspectorTest.PageAgent = target.pageAgent(); |
| 891 InspectorTest.ProfilerAgent = target.profilerAgent(); | 891 InspectorTest.ProfilerAgent = target.profilerAgent(); |
| 892 InspectorTest.RuntimeAgent = target.runtimeAgent(); | 892 InspectorTest.RuntimeAgent = target.runtimeAgent(); |
| 893 InspectorTest.WorkerAgent = target.workerAgent(); | 893 InspectorTest.WorkerAgent = target.workerAgent(); |
| 894 | 894 |
| 895 InspectorTest.consoleModel = target.consoleModel; | 895 InspectorTest.consoleModel = target.consoleModel; |
| 896 InspectorTest.networkManager = WebInspector.NetworkManager.fromTarget(ta
rget); | 896 InspectorTest.networkManager = WebInspector.NetworkManager.fromTarget(ta
rget); |
| 897 InspectorTest.securityOriginManager = WebInspector.SecurityOriginManager
.fromTarget(target); | 897 InspectorTest.securityOriginManager = WebInspector.SecurityOriginManager
.fromTarget(target); |
| 898 InspectorTest.resourceTreeModel = target.resourceTreeModel; | 898 InspectorTest.resourceTreeModel = WebInspector.ResourceTreeModel.fromTar
get(target); |
| 899 InspectorTest.networkLog = WebInspector.NetworkLog.fromTarget(target); | 899 InspectorTest.networkLog = WebInspector.NetworkLog.fromTarget(target); |
| 900 InspectorTest.debuggerModel = WebInspector.DebuggerModel.fromTarget(targ
et); | 900 InspectorTest.debuggerModel = WebInspector.DebuggerModel.fromTarget(targ
et); |
| 901 InspectorTest.runtimeModel = target.runtimeModel; | 901 InspectorTest.runtimeModel = target.runtimeModel; |
| 902 InspectorTest.domModel = WebInspector.DOMModel.fromTarget(target); | 902 InspectorTest.domModel = WebInspector.DOMModel.fromTarget(target); |
| 903 InspectorTest.cssModel = WebInspector.CSSModel.fromTarget(target); | 903 InspectorTest.cssModel = WebInspector.CSSModel.fromTarget(target); |
| 904 InspectorTest.workerManager = target.workerManager; | 904 InspectorTest.workerManager = target.workerManager; |
| 905 InspectorTest.powerProfiler = target.powerProfiler; | 905 InspectorTest.powerProfiler = target.powerProfiler; |
| 906 InspectorTest.cpuProfilerModel = target.cpuProfilerModel; | 906 InspectorTest.cpuProfilerModel = target.cpuProfilerModel; |
| 907 InspectorTest.heapProfilerModel = target.heapProfilerModel; | 907 InspectorTest.heapProfilerModel = target.heapProfilerModel; |
| 908 InspectorTest.animationModel = target.animationModel; | 908 InspectorTest.animationModel = target.animationModel; |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1145 _output("[page] " + text); | 1145 _output("[page] " + text); |
| 1146 } | 1146 } |
| 1147 | 1147 |
| 1148 function _output(result) | 1148 function _output(result) |
| 1149 { | 1149 { |
| 1150 if (!outputElement) | 1150 if (!outputElement) |
| 1151 createOutputElement(); | 1151 createOutputElement(); |
| 1152 outputElement.appendChild(document.createTextNode(result)); | 1152 outputElement.appendChild(document.createTextNode(result)); |
| 1153 outputElement.appendChild(document.createElement("br")); | 1153 outputElement.appendChild(document.createElement("br")); |
| 1154 } | 1154 } |
| OLD | NEW |