| 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 953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 964 InspectorTest.DebuggerAgent = target.debuggerAgent(); | 964 InspectorTest.DebuggerAgent = target.debuggerAgent(); |
| 965 InspectorTest.EmulationAgent = target.emulationAgent(); | 965 InspectorTest.EmulationAgent = target.emulationAgent(); |
| 966 InspectorTest.HeapProfilerAgent = target.heapProfilerAgent(); | 966 InspectorTest.HeapProfilerAgent = target.heapProfilerAgent(); |
| 967 InspectorTest.InspectorAgent = target.inspectorAgent(); | 967 InspectorTest.InspectorAgent = target.inspectorAgent(); |
| 968 InspectorTest.NetworkAgent = target.networkAgent(); | 968 InspectorTest.NetworkAgent = target.networkAgent(); |
| 969 InspectorTest.PageAgent = target.pageAgent(); | 969 InspectorTest.PageAgent = target.pageAgent(); |
| 970 InspectorTest.ProfilerAgent = target.profilerAgent(); | 970 InspectorTest.ProfilerAgent = target.profilerAgent(); |
| 971 InspectorTest.RuntimeAgent = target.runtimeAgent(); | 971 InspectorTest.RuntimeAgent = target.runtimeAgent(); |
| 972 InspectorTest.TargetAgent = target.targetAgent(); | 972 InspectorTest.TargetAgent = target.targetAgent(); |
| 973 | 973 |
| 974 InspectorTest.consoleModel = target.consoleModel; | |
| 975 InspectorTest.networkManager = SDK.NetworkManager.fromTarget(target); | 974 InspectorTest.networkManager = SDK.NetworkManager.fromTarget(target); |
| 976 InspectorTest.securityOriginManager = SDK.SecurityOriginManager.fromTarg
et(target); | 975 InspectorTest.securityOriginManager = SDK.SecurityOriginManager.fromTarg
et(target); |
| 977 InspectorTest.resourceTreeModel = SDK.ResourceTreeModel.fromTarget(targe
t); | 976 InspectorTest.resourceTreeModel = SDK.ResourceTreeModel.fromTarget(targe
t); |
| 978 InspectorTest.networkLog = SDK.NetworkLog.fromTarget(target); | 977 InspectorTest.networkLog = SDK.NetworkLog.fromTarget(target); |
| 979 InspectorTest.debuggerModel = SDK.DebuggerModel.fromTarget(target); | 978 InspectorTest.debuggerModel = SDK.DebuggerModel.fromTarget(target); |
| 980 InspectorTest.runtimeModel = target.runtimeModel; | 979 InspectorTest.runtimeModel = target.runtimeModel; |
| 981 InspectorTest.domModel = SDK.DOMModel.fromTarget(target); | 980 InspectorTest.domModel = SDK.DOMModel.fromTarget(target); |
| 982 InspectorTest.cssModel = target.model(SDK.CSSModel); | 981 InspectorTest.cssModel = target.model(SDK.CSSModel); |
| 983 InspectorTest.powerProfiler = target.powerProfiler; | 982 InspectorTest.powerProfiler = target.powerProfiler; |
| 984 InspectorTest.cpuProfilerModel = target.model(SDK.CPUProfilerModel); | 983 InspectorTest.cpuProfilerModel = target.model(SDK.CPUProfilerModel); |
| 985 InspectorTest.heapProfilerModel = target.heapProfilerModel; | 984 InspectorTest.heapProfilerModel = target.heapProfilerModel; |
| 986 InspectorTest.animationModel = target.animationModel; | 985 InspectorTest.animationModel = target.animationModel; |
| 987 InspectorTest.serviceWorkerCacheModel = target.serviceWorkerCacheModel; | 986 InspectorTest.serviceWorkerCacheModel = target.serviceWorkerCacheModel; |
| 988 InspectorTest.serviceWorkerManager = target.model(SDK.ServiceWorkerManag
er); | 987 InspectorTest.serviceWorkerManager = target.model(SDK.ServiceWorkerManag
er); |
| 989 InspectorTest.tracingManager = target.model(SDK.TracingManager); | 988 InspectorTest.tracingManager = target.model(SDK.TracingManager); |
| 990 InspectorTest.mainTarget = target; | 989 InspectorTest.mainTarget = target; |
| 990 Promise.resolve().then(() => { InspectorTest.consoleModel = SDK.multitar
getConsoleModel._consoleModels.get(target); }); |
| 991 }, | 991 }, |
| 992 | 992 |
| 993 targetRemoved: function(target) { } | 993 targetRemoved: function(target) { } |
| 994 }); | 994 }); |
| 995 | 995 |
| 996 InspectorTest._panelsToPreload = []; | 996 InspectorTest._panelsToPreload = []; |
| 997 | 997 |
| 998 InspectorTest.preloadPanel = function(panelName) | 998 InspectorTest.preloadPanel = function(panelName) |
| 999 { | 999 { |
| 1000 InspectorTest._panelsToPreload.push(panelName); | 1000 InspectorTest._panelsToPreload.push(panelName); |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1237 _output("[page] " + text); | 1237 _output("[page] " + text); |
| 1238 } | 1238 } |
| 1239 | 1239 |
| 1240 function _output(result) | 1240 function _output(result) |
| 1241 { | 1241 { |
| 1242 if (!outputElement) | 1242 if (!outputElement) |
| 1243 createOutputElement(); | 1243 createOutputElement(); |
| 1244 outputElement.appendChild(document.createTextNode(result)); | 1244 outputElement.appendChild(document.createTextNode(result)); |
| 1245 outputElement.appendChild(document.createElement("br")); | 1245 outputElement.appendChild(document.createElement("br")); |
| 1246 } | 1246 } |
| OLD | NEW |