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

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

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

Powered by Google App Engine
This is Rietveld 408576698