| 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 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 931 InspectorTest.isDedicatedWorker = function(target) | 931 InspectorTest.isDedicatedWorker = function(target) |
| 932 { | 932 { |
| 933 return target && !target.hasBrowserCapability() && target.hasJSCapability()
&& !target.hasNetworkCapability() && !target.hasWorkerCapability(); | 933 return target && !target.hasBrowserCapability() && target.hasJSCapability()
&& !target.hasNetworkCapability() && !target.hasWorkerCapability(); |
| 934 } | 934 } |
| 935 | 935 |
| 936 InspectorTest.isServiceWorker = function(target) | 936 InspectorTest.isServiceWorker = function(target) |
| 937 { | 937 { |
| 938 return target && !target.hasBrowserCapability() && !target.hasJSCapability()
&& target.hasNetworkCapability() && target.hasWorkerCapability(); | 938 return target && !target.hasBrowserCapability() && !target.hasJSCapability()
&& target.hasNetworkCapability() && target.hasWorkerCapability(); |
| 939 } | 939 } |
| 940 | 940 |
| 941 InspectorTest.describeTargetType = function(target) |
| 942 { |
| 943 if (InspectorTest.isDedicatedWorker(target)) |
| 944 return "worker"; |
| 945 if (InspectorTest.isServiceWorker(target)) |
| 946 return "service-worker"; |
| 947 if (!target.parentTarget()) |
| 948 return "page"; |
| 949 return "frame"; |
| 950 } |
| 951 |
| 941 }; // initialize_InspectorTest | 952 }; // initialize_InspectorTest |
| 942 | 953 |
| 943 var initializeCallId = 0; | 954 var initializeCallId = 0; |
| 944 var runTestCallId = 1; | 955 var runTestCallId = 1; |
| 945 var evalCallbackCallId = 2; | 956 var evalCallbackCallId = 2; |
| 946 var frontendReopeningCount = 0; | 957 var frontendReopeningCount = 0; |
| 947 | 958 |
| 948 function reopenFrontend() | 959 function reopenFrontend() |
| 949 { | 960 { |
| 950 closeFrontend(openFrontendAndIncrement); | 961 closeFrontend(openFrontendAndIncrement); |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1143 _output("[page] " + text); | 1154 _output("[page] " + text); |
| 1144 } | 1155 } |
| 1145 | 1156 |
| 1146 function _output(result) | 1157 function _output(result) |
| 1147 { | 1158 { |
| 1148 if (!outputElement) | 1159 if (!outputElement) |
| 1149 createOutputElement(); | 1160 createOutputElement(); |
| 1150 outputElement.appendChild(document.createTextNode(result)); | 1161 outputElement.appendChild(document.createTextNode(result)); |
| 1151 outputElement.appendChild(document.createElement("br")); | 1162 outputElement.appendChild(document.createElement("br")); |
| 1152 } | 1163 } |
| OLD | NEW |