| OLD | NEW |
| 1 if (window.GCController) | 1 if (window.GCController) |
| 2 GCController.collectAll(); | 2 GCController.collectAll(); |
| 3 | 3 |
| 4 var initialize_InspectorTest = function() { | 4 var initialize_InspectorTest = function() { |
| 5 Protocol.InspectorBackend.Options.suppressRequestErrors = true; | 5 Protocol.InspectorBackend.Options.suppressRequestErrors = true; |
| 6 var results = []; | 6 var results = []; |
| 7 | 7 |
| 8 function consoleOutputHook(messageType) | 8 function consoleOutputHook(messageType) |
| 9 { | 9 { |
| 10 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu
ments, 1)); | 10 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu
ments, 1)); |
| (...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 763 return buffer.replace(/\s*at[^()]+\(native\)/g, ""); | 763 return buffer.replace(/\s*at[^()]+\(native\)/g, ""); |
| 764 } | 764 } |
| 765 | 765 |
| 766 InspectorTest.hideInspectorView = function() | 766 InspectorTest.hideInspectorView = function() |
| 767 { | 767 { |
| 768 UI.inspectorView.element.setAttribute("style", "display:none !important"); | 768 UI.inspectorView.element.setAttribute("style", "display:none !important"); |
| 769 } | 769 } |
| 770 | 770 |
| 771 InspectorTest.mainFrame = function() | 771 InspectorTest.mainFrame = function() |
| 772 { | 772 { |
| 773 return SDK.ResourceTreeModel.fromTarget(InspectorTest.mainTarget).mainFrame; | 773 return InspectorTest.resourceTreeModel.mainFrame; |
| 774 } | 774 } |
| 775 | 775 |
| 776 InspectorTest.StringOutputStream = function(callback) | 776 InspectorTest.StringOutputStream = function(callback) |
| 777 { | 777 { |
| 778 this._callback = callback; | 778 this._callback = callback; |
| 779 this._buffer = ""; | 779 this._buffer = ""; |
| 780 }; | 780 }; |
| 781 | 781 |
| 782 InspectorTest.StringOutputStream.prototype = { | 782 InspectorTest.StringOutputStream.prototype = { |
| 783 open: function(fileName, callback) | 783 open: function(fileName, callback) |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 976 InspectorTest.DebuggerAgent = target.debuggerAgent(); | 976 InspectorTest.DebuggerAgent = target.debuggerAgent(); |
| 977 InspectorTest.EmulationAgent = target.emulationAgent(); | 977 InspectorTest.EmulationAgent = target.emulationAgent(); |
| 978 InspectorTest.HeapProfilerAgent = target.heapProfilerAgent(); | 978 InspectorTest.HeapProfilerAgent = target.heapProfilerAgent(); |
| 979 InspectorTest.InspectorAgent = target.inspectorAgent(); | 979 InspectorTest.InspectorAgent = target.inspectorAgent(); |
| 980 InspectorTest.NetworkAgent = target.networkAgent(); | 980 InspectorTest.NetworkAgent = target.networkAgent(); |
| 981 InspectorTest.PageAgent = target.pageAgent(); | 981 InspectorTest.PageAgent = target.pageAgent(); |
| 982 InspectorTest.ProfilerAgent = target.profilerAgent(); | 982 InspectorTest.ProfilerAgent = target.profilerAgent(); |
| 983 InspectorTest.RuntimeAgent = target.runtimeAgent(); | 983 InspectorTest.RuntimeAgent = target.runtimeAgent(); |
| 984 InspectorTest.TargetAgent = target.targetAgent(); | 984 InspectorTest.TargetAgent = target.targetAgent(); |
| 985 | 985 |
| 986 InspectorTest.networkManager = SDK.NetworkManager.fromTarget(target); | 986 InspectorTest.networkManager = target.model(SDK.NetworkManager); |
| 987 InspectorTest.securityOriginManager = SDK.SecurityOriginManager.fromTarg
et(target); | 987 InspectorTest.securityOriginManager = target.model(SDK.SecurityOriginMan
ager); |
| 988 InspectorTest.resourceTreeModel = SDK.ResourceTreeModel.fromTarget(targe
t); | 988 InspectorTest.resourceTreeModel = target.model(SDK.ResourceTreeModel); |
| 989 InspectorTest.debuggerModel = target.model(SDK.DebuggerModel); | 989 InspectorTest.debuggerModel = target.model(SDK.DebuggerModel); |
| 990 InspectorTest.runtimeModel = target.model(SDK.RuntimeModel); | 990 InspectorTest.runtimeModel = target.model(SDK.RuntimeModel); |
| 991 InspectorTest.domModel = SDK.DOMModel.fromTarget(target); | 991 InspectorTest.domModel = target.model(SDK.DOMModel); |
| 992 InspectorTest.cssModel = target.model(SDK.CSSModel); | 992 InspectorTest.cssModel = target.model(SDK.CSSModel); |
| 993 InspectorTest.powerProfiler = target.powerProfiler; | |
| 994 InspectorTest.cpuProfilerModel = target.model(SDK.CPUProfilerModel); | 993 InspectorTest.cpuProfilerModel = target.model(SDK.CPUProfilerModel); |
| 995 InspectorTest.heapProfilerModel = target.heapProfilerModel; | |
| 996 InspectorTest.animationModel = target.animationModel; | |
| 997 InspectorTest.serviceWorkerCacheModel = target.serviceWorkerCacheModel; | |
| 998 InspectorTest.serviceWorkerManager = target.model(SDK.ServiceWorkerManag
er); | 994 InspectorTest.serviceWorkerManager = target.model(SDK.ServiceWorkerManag
er); |
| 999 InspectorTest.tracingManager = target.model(SDK.TracingManager); | 995 InspectorTest.tracingManager = target.model(SDK.TracingManager); |
| 1000 InspectorTest.mainTarget = target; | 996 InspectorTest.mainTarget = target; |
| 1001 InspectorTest.consoleModel = ConsoleModel.consoleModel; | 997 InspectorTest.consoleModel = ConsoleModel.consoleModel; |
| 1002 InspectorTest.networkLog = NetworkLog.networkLog; | 998 InspectorTest.networkLog = NetworkLog.networkLog; |
| 1003 }, | 999 }, |
| 1004 | 1000 |
| 1005 targetRemoved: function(target) { } | 1001 targetRemoved: function(target) { } |
| 1006 }); | 1002 }); |
| 1007 | 1003 |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1249 _output("[page] " + text); | 1245 _output("[page] " + text); |
| 1250 } | 1246 } |
| 1251 | 1247 |
| 1252 function _output(result) | 1248 function _output(result) |
| 1253 { | 1249 { |
| 1254 if (!outputElement) | 1250 if (!outputElement) |
| 1255 createOutputElement(); | 1251 createOutputElement(); |
| 1256 outputElement.appendChild(document.createTextNode(result)); | 1252 outputElement.appendChild(document.createTextNode(result)); |
| 1257 outputElement.appendChild(document.createElement("br")); | 1253 outputElement.appendChild(document.createElement("br")); |
| 1258 } | 1254 } |
| OLD | NEW |