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 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
988 InspectorTest.cssModel = target.model(SDK.CSSModel); | 988 InspectorTest.cssModel = target.model(SDK.CSSModel); |
989 InspectorTest.powerProfiler = target.powerProfiler; | 989 InspectorTest.powerProfiler = target.powerProfiler; |
990 InspectorTest.cpuProfilerModel = target.model(SDK.CPUProfilerModel); | 990 InspectorTest.cpuProfilerModel = target.model(SDK.CPUProfilerModel); |
991 InspectorTest.heapProfilerModel = target.heapProfilerModel; | 991 InspectorTest.heapProfilerModel = target.heapProfilerModel; |
992 InspectorTest.animationModel = target.animationModel; | 992 InspectorTest.animationModel = target.animationModel; |
993 InspectorTest.serviceWorkerCacheModel = target.serviceWorkerCacheModel; | 993 InspectorTest.serviceWorkerCacheModel = target.serviceWorkerCacheModel; |
994 InspectorTest.serviceWorkerManager = target.model(SDK.ServiceWorkerManag
er); | 994 InspectorTest.serviceWorkerManager = target.model(SDK.ServiceWorkerManag
er); |
995 InspectorTest.tracingManager = target.model(SDK.TracingManager); | 995 InspectorTest.tracingManager = target.model(SDK.TracingManager); |
996 InspectorTest.mainTarget = target; | 996 InspectorTest.mainTarget = target; |
997 InspectorTest.consoleModel = ConsoleModel.consoleModel; | 997 InspectorTest.consoleModel = ConsoleModel.consoleModel; |
998 InspectorTest.networkLog = SDK.networkLog; | 998 InspectorTest.networkLog = NetworkLog.networkLog; |
999 }, | 999 }, |
1000 | 1000 |
1001 targetRemoved: function(target) { } | 1001 targetRemoved: function(target) { } |
1002 }); | 1002 }); |
1003 | 1003 |
1004 InspectorTest._panelsToPreload = []; | 1004 InspectorTest._panelsToPreload = []; |
1005 | 1005 |
1006 InspectorTest.preloadPanel = function(panelName) | 1006 InspectorTest.preloadPanel = function(panelName) |
1007 { | 1007 { |
1008 InspectorTest._panelsToPreload.push(panelName); | 1008 InspectorTest._panelsToPreload.push(panelName); |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1245 _output("[page] " + text); | 1245 _output("[page] " + text); |
1246 } | 1246 } |
1247 | 1247 |
1248 function _output(result) | 1248 function _output(result) |
1249 { | 1249 { |
1250 if (!outputElement) | 1250 if (!outputElement) |
1251 createOutputElement(); | 1251 createOutputElement(); |
1252 outputElement.appendChild(document.createTextNode(result)); | 1252 outputElement.appendChild(document.createTextNode(result)); |
1253 outputElement.appendChild(document.createElement("br")); | 1253 outputElement.appendChild(document.createElement("br")); |
1254 } | 1254 } |
OLD | NEW |