| OLD | NEW |
| 1 if (window.GCController) | 1 if (window.GCController) |
| 2 GCController.collectAll(); | 2 GCController.collectAll(); |
| 3 var initialize_InspectorTest = function() { | 3 var initialize_InspectorTest = function() { |
| 4 | 4 |
| 5 var results = []; | 5 var results = []; |
| 6 | 6 |
| 7 function consoleOutputHook(messageType) | 7 function consoleOutputHook(messageType) |
| 8 { | 8 { |
| 9 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu
ments, 1)); | 9 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu
ments, 1)); |
| 10 } | 10 } |
| (...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 891 InspectorTest.DOMDebuggerAgent = target.domdebuggerAgent(); | 891 InspectorTest.DOMDebuggerAgent = target.domdebuggerAgent(); |
| 892 InspectorTest.DebuggerAgent = target.debuggerAgent(); | 892 InspectorTest.DebuggerAgent = target.debuggerAgent(); |
| 893 InspectorTest.EmulationAgent = target.emulationAgent(); | 893 InspectorTest.EmulationAgent = target.emulationAgent(); |
| 894 InspectorTest.HeapProfilerAgent = target.heapProfilerAgent(); | 894 InspectorTest.HeapProfilerAgent = target.heapProfilerAgent(); |
| 895 InspectorTest.InspectorAgent = target.inspectorAgent(); | 895 InspectorTest.InspectorAgent = target.inspectorAgent(); |
| 896 InspectorTest.LayerTreeAgent = target.layerTreeAgent(); | 896 InspectorTest.LayerTreeAgent = target.layerTreeAgent(); |
| 897 InspectorTest.NetworkAgent = target.networkAgent(); | 897 InspectorTest.NetworkAgent = target.networkAgent(); |
| 898 InspectorTest.PageAgent = target.pageAgent(); | 898 InspectorTest.PageAgent = target.pageAgent(); |
| 899 InspectorTest.ProfilerAgent = target.profilerAgent(); | 899 InspectorTest.ProfilerAgent = target.profilerAgent(); |
| 900 InspectorTest.RuntimeAgent = target.runtimeAgent(); | 900 InspectorTest.RuntimeAgent = target.runtimeAgent(); |
| 901 InspectorTest.WorkerAgent = target.workerAgent(); | 901 InspectorTest.TargetAgent = target.targetAgent(); |
| 902 | 902 |
| 903 InspectorTest.consoleModel = target.consoleModel; | 903 InspectorTest.consoleModel = target.consoleModel; |
| 904 InspectorTest.networkManager = WebInspector.NetworkManager.fromTarget(ta
rget); | 904 InspectorTest.networkManager = WebInspector.NetworkManager.fromTarget(ta
rget); |
| 905 InspectorTest.securityOriginManager = WebInspector.SecurityOriginManager
.fromTarget(target); | 905 InspectorTest.securityOriginManager = WebInspector.SecurityOriginManager
.fromTarget(target); |
| 906 InspectorTest.resourceTreeModel = WebInspector.ResourceTreeModel.fromTar
get(target); | 906 InspectorTest.resourceTreeModel = WebInspector.ResourceTreeModel.fromTar
get(target); |
| 907 InspectorTest.networkLog = WebInspector.NetworkLog.fromTarget(target); | 907 InspectorTest.networkLog = WebInspector.NetworkLog.fromTarget(target); |
| 908 InspectorTest.debuggerModel = WebInspector.DebuggerModel.fromTarget(targ
et); | 908 InspectorTest.debuggerModel = WebInspector.DebuggerModel.fromTarget(targ
et); |
| 909 InspectorTest.runtimeModel = target.runtimeModel; | 909 InspectorTest.runtimeModel = target.runtimeModel; |
| 910 InspectorTest.domModel = WebInspector.DOMModel.fromTarget(target); | 910 InspectorTest.domModel = WebInspector.DOMModel.fromTarget(target); |
| 911 InspectorTest.cssModel = WebInspector.CSSModel.fromTarget(target); | 911 InspectorTest.cssModel = WebInspector.CSSModel.fromTarget(target); |
| 912 InspectorTest.workerManager = target.workerManager; | |
| 913 InspectorTest.powerProfiler = target.powerProfiler; | 912 InspectorTest.powerProfiler = target.powerProfiler; |
| 914 InspectorTest.cpuProfilerModel = target.cpuProfilerModel; | 913 InspectorTest.cpuProfilerModel = target.cpuProfilerModel; |
| 915 InspectorTest.heapProfilerModel = target.heapProfilerModel; | 914 InspectorTest.heapProfilerModel = target.heapProfilerModel; |
| 916 InspectorTest.animationModel = target.animationModel; | 915 InspectorTest.animationModel = target.animationModel; |
| 917 InspectorTest.serviceWorkerCacheModel = target.serviceWorkerCacheModel; | 916 InspectorTest.serviceWorkerCacheModel = target.serviceWorkerCacheModel; |
| 918 InspectorTest.serviceWorkerManager = target.serviceWorkerManager; | 917 InspectorTest.serviceWorkerManager = target.serviceWorkerManager; |
| 919 InspectorTest.tracingManager = target.tracingManager; | 918 InspectorTest.tracingManager = target.tracingManager; |
| 920 InspectorTest.mainTarget = target; | 919 InspectorTest.mainTarget = target; |
| 921 }, | 920 }, |
| 922 | 921 |
| 923 targetRemoved: function(target) { } | 922 targetRemoved: function(target) { } |
| 924 }); | 923 }); |
| 925 | 924 |
| 926 InspectorTest._panelsToPreload = []; | 925 InspectorTest._panelsToPreload = []; |
| 927 | 926 |
| 928 InspectorTest.preloadPanel = function(panelName) | 927 InspectorTest.preloadPanel = function(panelName) |
| 929 { | 928 { |
| 930 InspectorTest._panelsToPreload.push(panelName); | 929 InspectorTest._panelsToPreload.push(panelName); |
| 931 } | 930 } |
| 932 | 931 |
| 933 InspectorTest._modulesToPreload = []; | 932 InspectorTest._modulesToPreload = []; |
| 934 | 933 |
| 935 InspectorTest.preloadModule = function(moduleName) | 934 InspectorTest.preloadModule = function(moduleName) |
| 936 { | 935 { |
| 937 InspectorTest._modulesToPreload.push(moduleName); | 936 InspectorTest._modulesToPreload.push(moduleName); |
| 938 } | 937 } |
| 939 | 938 |
| 940 InspectorTest.isDedicatedWorker = function(target) | 939 InspectorTest.isDedicatedWorker = function(target) |
| 941 { | 940 { |
| 942 return target && !target.hasBrowserCapability() && target.hasJSCapability()
&& !target.hasNetworkCapability() && !target.hasWorkerCapability(); | 941 return target && !target.hasBrowserCapability() && target.hasJSCapability()
&& !target.hasNetworkCapability() && !target.hasTargetCapability(); |
| 943 } | 942 } |
| 944 | 943 |
| 945 InspectorTest.isServiceWorker = function(target) | 944 InspectorTest.isServiceWorker = function(target) |
| 946 { | 945 { |
| 947 return target && !target.hasBrowserCapability() && !target.hasJSCapability()
&& target.hasNetworkCapability() && target.hasWorkerCapability(); | 946 return target && !target.hasBrowserCapability() && !target.hasJSCapability()
&& target.hasNetworkCapability() && target.hasTargetCapability(); |
| 948 } | 947 } |
| 949 | 948 |
| 950 InspectorTest.describeTargetType = function(target) | 949 InspectorTest.describeTargetType = function(target) |
| 951 { | 950 { |
| 952 if (InspectorTest.isDedicatedWorker(target)) | 951 if (InspectorTest.isDedicatedWorker(target)) |
| 953 return "worker"; | 952 return "worker"; |
| 954 if (InspectorTest.isServiceWorker(target)) | 953 if (InspectorTest.isServiceWorker(target)) |
| 955 return "service-worker"; | 954 return "service-worker"; |
| 956 if (!target.parentTarget()) | 955 if (!target.parentTarget()) |
| 957 return "page"; | 956 return "page"; |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1164 _output("[page] " + text); | 1163 _output("[page] " + text); |
| 1165 } | 1164 } |
| 1166 | 1165 |
| 1167 function _output(result) | 1166 function _output(result) |
| 1168 { | 1167 { |
| 1169 if (!outputElement) | 1168 if (!outputElement) |
| 1170 createOutputElement(); | 1169 createOutputElement(); |
| 1171 outputElement.appendChild(document.createTextNode(result)); | 1170 outputElement.appendChild(document.createTextNode(result)); |
| 1172 outputElement.appendChild(document.createElement("br")); | 1171 outputElement.appendChild(document.createElement("br")); |
| 1173 } | 1172 } |
| OLD | NEW |