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 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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.networkManager = SDK.NetworkManager.fromTarget(target); | 974 InspectorTest.networkManager = SDK.NetworkManager.fromTarget(target); |
975 InspectorTest.securityOriginManager = SDK.SecurityOriginManager.fromTarg
et(target); | 975 InspectorTest.securityOriginManager = SDK.SecurityOriginManager.fromTarg
et(target); |
976 InspectorTest.resourceTreeModel = SDK.ResourceTreeModel.fromTarget(targe
t); | 976 InspectorTest.resourceTreeModel = SDK.ResourceTreeModel.fromTarget(targe
t); |
977 InspectorTest.networkLog = SDK.NetworkLog.fromTarget(target); | 977 InspectorTest.networkLog = SDK.NetworkLog.fromTarget(target); |
978 InspectorTest.debuggerModel = SDK.DebuggerModel.fromTarget(target); | 978 InspectorTest.debuggerModel = target.model(SDK.DebuggerModel); |
979 InspectorTest.runtimeModel = target.runtimeModel; | 979 InspectorTest.runtimeModel = target.runtimeModel; |
980 InspectorTest.domModel = SDK.DOMModel.fromTarget(target); | 980 InspectorTest.domModel = SDK.DOMModel.fromTarget(target); |
981 InspectorTest.cssModel = target.model(SDK.CSSModel); | 981 InspectorTest.cssModel = target.model(SDK.CSSModel); |
982 InspectorTest.powerProfiler = target.powerProfiler; | 982 InspectorTest.powerProfiler = target.powerProfiler; |
983 InspectorTest.cpuProfilerModel = target.model(SDK.CPUProfilerModel); | 983 InspectorTest.cpuProfilerModel = target.model(SDK.CPUProfilerModel); |
984 InspectorTest.heapProfilerModel = target.heapProfilerModel; | 984 InspectorTest.heapProfilerModel = target.heapProfilerModel; |
985 InspectorTest.animationModel = target.animationModel; | 985 InspectorTest.animationModel = target.animationModel; |
986 InspectorTest.serviceWorkerCacheModel = target.serviceWorkerCacheModel; | 986 InspectorTest.serviceWorkerCacheModel = target.serviceWorkerCacheModel; |
987 InspectorTest.serviceWorkerManager = target.model(SDK.ServiceWorkerManag
er); | 987 InspectorTest.serviceWorkerManager = target.model(SDK.ServiceWorkerManag
er); |
988 InspectorTest.tracingManager = target.model(SDK.TracingManager); | 988 InspectorTest.tracingManager = target.model(SDK.TracingManager); |
(...skipping 248 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 |