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

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

Issue 2701753003: [WIP] off-main-thread loading
Patch Set: small fix Created 3 years, 8 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 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 1010
1011 InspectorTest._modulesToPreload = []; 1011 InspectorTest._modulesToPreload = [];
1012 1012
1013 InspectorTest.preloadModule = function(moduleName) 1013 InspectorTest.preloadModule = function(moduleName)
1014 { 1014 {
1015 InspectorTest._modulesToPreload.push(moduleName); 1015 InspectorTest._modulesToPreload.push(moduleName);
1016 } 1016 }
1017 1017
1018 InspectorTest.isDedicatedWorker = function(target) 1018 InspectorTest.isDedicatedWorker = function(target)
1019 { 1019 {
1020 return target && !target.hasBrowserCapability() && target.hasJSCapability() && !target.hasNetworkCapability() && !target.hasTargetCapability(); 1020 return target && !target.hasBrowserCapability() && target.hasJSCapability() && !target.hasTargetCapability();
1021 } 1021 }
1022 1022
1023 InspectorTest.isServiceWorker = function(target) 1023 InspectorTest.isServiceWorker = function(target)
1024 { 1024 {
1025 return target && !target.hasBrowserCapability() && !target.hasJSCapability() && target.hasNetworkCapability() && target.hasTargetCapability(); 1025 return target && !target.hasBrowserCapability() && !target.hasJSCapability() && target.hasNetworkCapability() && target.hasTargetCapability();
1026 } 1026 }
1027 1027
1028 InspectorTest.describeTargetType = function(target) 1028 InspectorTest.describeTargetType = function(target)
1029 { 1029 {
1030 if (InspectorTest.isDedicatedWorker(target)) 1030 if (InspectorTest.isDedicatedWorker(target))
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 _output("[page] " + text); 1245 _output("[page] " + text);
1246 } 1246 }
1247 1247
1248 function _output(result) 1248 function _output(result)
1249 { 1249 {
1250 if (!outputElement) 1250 if (!outputElement)
1251 createOutputElement(); 1251 createOutputElement();
1252 outputElement.appendChild(document.createTextNode(result)); 1252 outputElement.appendChild(document.createTextNode(result));
1253 outputElement.appendChild(document.createElement("br")); 1253 outputElement.appendChild(document.createElement("br"));
1254 } 1254 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698