| 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 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 990 | 990 |
| 991 InspectorTest._modulesToPreload = []; | 991 InspectorTest._modulesToPreload = []; |
| 992 | 992 |
| 993 InspectorTest.preloadModule = function(moduleName) | 993 InspectorTest.preloadModule = function(moduleName) |
| 994 { | 994 { |
| 995 InspectorTest._modulesToPreload.push(moduleName); | 995 InspectorTest._modulesToPreload.push(moduleName); |
| 996 } | 996 } |
| 997 | 997 |
| 998 InspectorTest.isDedicatedWorker = function(target) | 998 InspectorTest.isDedicatedWorker = function(target) |
| 999 { | 999 { |
| 1000 return target && !target.hasBrowserCapability() && target.hasJSCapability()
&& !target.hasTargetCapability(); | 1000 return target && !target.hasBrowserCapability() && target.hasJSCapability()
&& !target.hasNetworkCapability() && !target.hasTargetCapability(); |
| 1001 } | 1001 } |
| 1002 | 1002 |
| 1003 InspectorTest.isServiceWorker = function(target) | 1003 InspectorTest.isServiceWorker = function(target) |
| 1004 { | 1004 { |
| 1005 return target && !target.hasBrowserCapability() && !target.hasJSCapability()
&& target.hasTargetCapability(); | 1005 return target && !target.hasBrowserCapability() && !target.hasJSCapability()
&& target.hasNetworkCapability() && target.hasTargetCapability(); |
| 1006 } | 1006 } |
| 1007 | 1007 |
| 1008 InspectorTest.describeTargetType = function(target) | 1008 InspectorTest.describeTargetType = function(target) |
| 1009 { | 1009 { |
| 1010 if (InspectorTest.isDedicatedWorker(target)) | 1010 if (InspectorTest.isDedicatedWorker(target)) |
| 1011 return "worker"; | 1011 return "worker"; |
| 1012 if (InspectorTest.isServiceWorker(target)) | 1012 if (InspectorTest.isServiceWorker(target)) |
| 1013 return "service-worker"; | 1013 return "service-worker"; |
| 1014 if (!target.parentTarget()) | 1014 if (!target.parentTarget()) |
| 1015 return "page"; | 1015 return "page"; |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1225 _output("[page] " + text); | 1225 _output("[page] " + text); |
| 1226 } | 1226 } |
| 1227 | 1227 |
| 1228 function _output(result) | 1228 function _output(result) |
| 1229 { | 1229 { |
| 1230 if (!outputElement) | 1230 if (!outputElement) |
| 1231 createOutputElement(); | 1231 createOutputElement(); |
| 1232 outputElement.appendChild(document.createTextNode(result)); | 1232 outputElement.appendChild(document.createTextNode(result)); |
| 1233 outputElement.appendChild(document.createElement("br")); | 1233 outputElement.appendChild(document.createElement("br")); |
| 1234 } | 1234 } |
| OLD | NEW |