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

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

Issue 2807533003: [WIP2] off-main-thread loading
Patch Set: call set_is_secure_context in EmbeddedSharedWorkerStub::CreateWorkerFetchContext() 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 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 1013
1014 InspectorTest._modulesToPreload = []; 1014 InspectorTest._modulesToPreload = [];
1015 1015
1016 InspectorTest.preloadModule = function(moduleName) 1016 InspectorTest.preloadModule = function(moduleName)
1017 { 1017 {
1018 InspectorTest._modulesToPreload.push(moduleName); 1018 InspectorTest._modulesToPreload.push(moduleName);
1019 } 1019 }
1020 1020
1021 InspectorTest.isDedicatedWorker = function(target) 1021 InspectorTest.isDedicatedWorker = function(target)
1022 { 1022 {
1023 return target && !target.hasBrowserCapability() && target.hasJSCapability() && !target.hasNetworkCapability() && !target.hasTargetCapability(); 1023 return target && !target.hasBrowserCapability() && target.hasJSCapability() && !target.hasTargetCapability();
1024 } 1024 }
1025 1025
1026 InspectorTest.isServiceWorker = function(target) 1026 InspectorTest.isServiceWorker = function(target)
1027 { 1027 {
1028 return target && !target.hasBrowserCapability() && !target.hasJSCapability() && target.hasNetworkCapability() && target.hasTargetCapability(); 1028 return target && !target.hasBrowserCapability() && !target.hasJSCapability() && target.hasNetworkCapability() && target.hasTargetCapability();
1029 } 1029 }
1030 1030
1031 InspectorTest.describeTargetType = function(target) 1031 InspectorTest.describeTargetType = function(target)
1032 { 1032 {
1033 if (InspectorTest.isDedicatedWorker(target)) 1033 if (InspectorTest.isDedicatedWorker(target))
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 _output("[page] " + text); 1248 _output("[page] " + text);
1249 } 1249 }
1250 1250
1251 function _output(result) 1251 function _output(result)
1252 { 1252 {
1253 if (!outputElement) 1253 if (!outputElement)
1254 createOutputElement(); 1254 createOutputElement();
1255 outputElement.appendChild(document.createTextNode(result)); 1255 outputElement.appendChild(document.createTextNode(result));
1256 outputElement.appendChild(document.createElement("br")); 1256 outputElement.appendChild(document.createElement("br"));
1257 } 1257 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698