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

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

Issue 2807533003: [WIP2] off-main-thread loading
Patch Set: rebase Created 3 years, 7 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 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 1069
1070 InspectorTest._modulesToPreload = []; 1070 InspectorTest._modulesToPreload = [];
1071 1071
1072 InspectorTest.preloadModule = function(moduleName) 1072 InspectorTest.preloadModule = function(moduleName)
1073 { 1073 {
1074 InspectorTest._modulesToPreload.push(moduleName); 1074 InspectorTest._modulesToPreload.push(moduleName);
1075 } 1075 }
1076 1076
1077 InspectorTest.isDedicatedWorker = function(target) 1077 InspectorTest.isDedicatedWorker = function(target)
1078 { 1078 {
1079 return target && !target.hasBrowserCapability() && target.hasJSCapability() && !target.hasNetworkCapability() && !target.hasTargetCapability(); 1079 return target && !target.hasBrowserCapability() && target.hasJSCapability() && !target.hasTargetCapability();
1080 } 1080 }
1081 1081
1082 InspectorTest.isServiceWorker = function(target) 1082 InspectorTest.isServiceWorker = function(target)
1083 { 1083 {
1084 return target && !target.hasBrowserCapability() && !target.hasJSCapability() && target.hasNetworkCapability() && target.hasTargetCapability(); 1084 return target && !target.hasBrowserCapability() && !target.hasJSCapability() && target.hasNetworkCapability() && target.hasTargetCapability();
1085 } 1085 }
1086 1086
1087 InspectorTest.describeTargetType = function(target) 1087 InspectorTest.describeTargetType = function(target)
1088 { 1088 {
1089 if (InspectorTest.isDedicatedWorker(target)) 1089 if (InspectorTest.isDedicatedWorker(target))
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 _output("[page] " + text); 1304 _output("[page] " + text);
1305 } 1305 }
1306 1306
1307 function _output(result) 1307 function _output(result)
1308 { 1308 {
1309 if (!outputElement) 1309 if (!outputElement)
1310 createOutputElement(); 1310 createOutputElement();
1311 outputElement.appendChild(document.createTextNode(result)); 1311 outputElement.appendChild(document.createTextNode(result));
1312 outputElement.appendChild(document.createElement("br")); 1312 outputElement.appendChild(document.createElement("br"));
1313 } 1313 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698