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 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 | 1011 |
1012 InspectorTest._modulesToPreload = []; | 1012 InspectorTest._modulesToPreload = []; |
1013 | 1013 |
1014 InspectorTest.preloadModule = function(moduleName) | 1014 InspectorTest.preloadModule = function(moduleName) |
1015 { | 1015 { |
1016 InspectorTest._modulesToPreload.push(moduleName); | 1016 InspectorTest._modulesToPreload.push(moduleName); |
1017 } | 1017 } |
1018 | 1018 |
1019 InspectorTest.isDedicatedWorker = function(target) | 1019 InspectorTest.isDedicatedWorker = function(target) |
1020 { | 1020 { |
1021 return target && !target.hasBrowserCapability() && target.hasJSCapability()
&& !target.hasNetworkCapability() && !target.hasTargetCapability(); | 1021 return target && !target.hasBrowserCapability() && target.hasJSCapability()
&& !target.hasTargetCapability(); |
1022 } | 1022 } |
1023 | 1023 |
1024 InspectorTest.isServiceWorker = function(target) | 1024 InspectorTest.isServiceWorker = function(target) |
1025 { | 1025 { |
1026 return target && !target.hasBrowserCapability() && !target.hasJSCapability()
&& target.hasNetworkCapability() && target.hasTargetCapability(); | 1026 return target && !target.hasBrowserCapability() && !target.hasJSCapability()
&& target.hasNetworkCapability() && target.hasTargetCapability(); |
1027 } | 1027 } |
1028 | 1028 |
1029 InspectorTest.describeTargetType = function(target) | 1029 InspectorTest.describeTargetType = function(target) |
1030 { | 1030 { |
1031 if (InspectorTest.isDedicatedWorker(target)) | 1031 if (InspectorTest.isDedicatedWorker(target)) |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1246 _output("[page] " + text); | 1246 _output("[page] " + text); |
1247 } | 1247 } |
1248 | 1248 |
1249 function _output(result) | 1249 function _output(result) |
1250 { | 1250 { |
1251 if (!outputElement) | 1251 if (!outputElement) |
1252 createOutputElement(); | 1252 createOutputElement(); |
1253 outputElement.appendChild(document.createTextNode(result)); | 1253 outputElement.appendChild(document.createTextNode(result)); |
1254 outputElement.appendChild(document.createElement("br")); | 1254 outputElement.appendChild(document.createElement("br")); |
1255 } | 1255 } |
OLD | NEW |