| 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 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1048 | 1048 |
| 1049 InspectorTest._modulesToPreload = []; | 1049 InspectorTest._modulesToPreload = []; |
| 1050 | 1050 |
| 1051 InspectorTest.preloadModule = function(moduleName) | 1051 InspectorTest.preloadModule = function(moduleName) |
| 1052 { | 1052 { |
| 1053 InspectorTest._modulesToPreload.push(moduleName); | 1053 InspectorTest._modulesToPreload.push(moduleName); |
| 1054 } | 1054 } |
| 1055 | 1055 |
| 1056 InspectorTest.isDedicatedWorker = function(target) | 1056 InspectorTest.isDedicatedWorker = function(target) |
| 1057 { | 1057 { |
| 1058 return target && !target.hasBrowserCapability() && target.hasJSCapability()
&& !target.hasNetworkCapability() && !target.hasTargetCapability(); | 1058 return target && !target.hasBrowserCapability() && target.hasJSCapability()
&& !target.hasTargetCapability(); |
| 1059 } | 1059 } |
| 1060 | 1060 |
| 1061 InspectorTest.isServiceWorker = function(target) | 1061 InspectorTest.isServiceWorker = function(target) |
| 1062 { | 1062 { |
| 1063 return target && !target.hasBrowserCapability() && !target.hasJSCapability()
&& target.hasNetworkCapability() && target.hasTargetCapability(); | 1063 return target && !target.hasBrowserCapability() && !target.hasJSCapability()
&& target.hasNetworkCapability() && target.hasTargetCapability(); |
| 1064 } | 1064 } |
| 1065 | 1065 |
| 1066 InspectorTest.describeTargetType = function(target) | 1066 InspectorTest.describeTargetType = function(target) |
| 1067 { | 1067 { |
| 1068 if (InspectorTest.isDedicatedWorker(target)) | 1068 if (InspectorTest.isDedicatedWorker(target)) |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1283 _output("[page] " + text); | 1283 _output("[page] " + text); |
| 1284 } | 1284 } |
| 1285 | 1285 |
| 1286 function _output(result) | 1286 function _output(result) |
| 1287 { | 1287 { |
| 1288 if (!outputElement) | 1288 if (!outputElement) |
| 1289 createOutputElement(); | 1289 createOutputElement(); |
| 1290 outputElement.appendChild(document.createTextNode(result)); | 1290 outputElement.appendChild(document.createTextNode(result)); |
| 1291 outputElement.appendChild(document.createElement("br")); | 1291 outputElement.appendChild(document.createElement("br")); |
| 1292 } | 1292 } |
| OLD | NEW |