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 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
966 InspectorTest.consoleModel = target.consoleModel; | 966 InspectorTest.consoleModel = target.consoleModel; |
967 InspectorTest.networkManager = SDK.NetworkManager.fromTarget(target); | 967 InspectorTest.networkManager = SDK.NetworkManager.fromTarget(target); |
968 InspectorTest.securityOriginManager = SDK.SecurityOriginManager.fromTarg
et(target); | 968 InspectorTest.securityOriginManager = SDK.SecurityOriginManager.fromTarg
et(target); |
969 InspectorTest.resourceTreeModel = SDK.ResourceTreeModel.fromTarget(targe
t); | 969 InspectorTest.resourceTreeModel = SDK.ResourceTreeModel.fromTarget(targe
t); |
970 InspectorTest.networkLog = SDK.NetworkLog.fromTarget(target); | 970 InspectorTest.networkLog = SDK.NetworkLog.fromTarget(target); |
971 InspectorTest.debuggerModel = SDK.DebuggerModel.fromTarget(target); | 971 InspectorTest.debuggerModel = SDK.DebuggerModel.fromTarget(target); |
972 InspectorTest.runtimeModel = target.runtimeModel; | 972 InspectorTest.runtimeModel = target.runtimeModel; |
973 InspectorTest.domModel = SDK.DOMModel.fromTarget(target); | 973 InspectorTest.domModel = SDK.DOMModel.fromTarget(target); |
974 InspectorTest.cssModel = target.model(SDK.CSSModel); | 974 InspectorTest.cssModel = target.model(SDK.CSSModel); |
975 InspectorTest.powerProfiler = target.powerProfiler; | 975 InspectorTest.powerProfiler = target.powerProfiler; |
976 InspectorTest.cpuProfilerModel = target.cpuProfilerModel; | 976 InspectorTest.cpuProfilerModel = target.model(SDK.CPUProfilerModel); |
977 InspectorTest.heapProfilerModel = target.heapProfilerModel; | 977 InspectorTest.heapProfilerModel = target.heapProfilerModel; |
978 InspectorTest.animationModel = target.animationModel; | 978 InspectorTest.animationModel = target.animationModel; |
979 InspectorTest.serviceWorkerCacheModel = target.serviceWorkerCacheModel; | 979 InspectorTest.serviceWorkerCacheModel = target.serviceWorkerCacheModel; |
980 InspectorTest.serviceWorkerManager = target.model(SDK.ServiceWorkerManag
er); | 980 InspectorTest.serviceWorkerManager = target.model(SDK.ServiceWorkerManag
er); |
981 InspectorTest.tracingManager = target.tracingManager; | 981 InspectorTest.tracingManager = target.tracingManager; |
982 InspectorTest.mainTarget = target; | 982 InspectorTest.mainTarget = target; |
983 }, | 983 }, |
984 | 984 |
985 targetRemoved: function(target) { } | 985 targetRemoved: function(target) { } |
986 }); | 986 }); |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1229 _output("[page] " + text); | 1229 _output("[page] " + text); |
1230 } | 1230 } |
1231 | 1231 |
1232 function _output(result) | 1232 function _output(result) |
1233 { | 1233 { |
1234 if (!outputElement) | 1234 if (!outputElement) |
1235 createOutputElement(); | 1235 createOutputElement(); |
1236 outputElement.appendChild(document.createTextNode(result)); | 1236 outputElement.appendChild(document.createTextNode(result)); |
1237 outputElement.appendChild(document.createElement("br")); | 1237 outputElement.appendChild(document.createElement("br")); |
1238 } | 1238 } |
OLD | NEW |