Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js

Issue 2900613002: Support DevTools for off-main-thread-fetch (Closed)
Patch Set: rebase Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698