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

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

Issue 2137773002: [DevTools] Replace the target type with capabilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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 var initialize_InspectorTest = function() { 3 var initialize_InspectorTest = function() {
4 4
5 var results = []; 5 var results = [];
6 6
7 function consoleOutputHook(messageType) 7 function consoleOutputHook(messageType)
8 { 8 {
9 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1)); 9 InspectorTest.addResult(messageType + ": " + Array.prototype.slice.call(argu ments, 1));
10 } 10 }
(...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after
991 InspectorTest._panelsToPreload.push(panelName); 991 InspectorTest._panelsToPreload.push(panelName);
992 } 992 }
993 993
994 InspectorTest._modulesToPreload = []; 994 InspectorTest._modulesToPreload = [];
995 995
996 InspectorTest.preloadModule = function(moduleName) 996 InspectorTest.preloadModule = function(moduleName)
997 { 997 {
998 InspectorTest._modulesToPreload.push(moduleName); 998 InspectorTest._modulesToPreload.push(moduleName);
999 } 999 }
1000 1000
1001 }; // initialize_InspectorTest 1001 InspectorTest.isDedicatedWorker = function(target)
1002 {
1003 return target && !target.hasBrowserCapability() && target.hasJSCapability() && !target.hasNetworkCapability() && !target.hasWorkerCapability();
1004 }
1005
1006 InspectorTest.isServiceWorker = function(target)
1007 {
1008 return target && !target.hasBrowserCapability() && !target.hasJSCapability() && target.hasNetworkCapability() && target.hasWorkerCapability();
1009 }
1010
1011 }; // initialize_InspectorTest
1002 1012
1003 var initializeCallId = 0; 1013 var initializeCallId = 0;
1004 var runTestCallId = 1; 1014 var runTestCallId = 1;
1005 var evalCallbackCallId = 2; 1015 var evalCallbackCallId = 2;
1006 var frontendReopeningCount = 0; 1016 var frontendReopeningCount = 0;
1007 1017
1008 function reopenFrontend() 1018 function reopenFrontend()
1009 { 1019 {
1010 closeFrontend(openFrontendAndIncrement); 1020 closeFrontend(openFrontendAndIncrement);
1011 } 1021 }
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1203 _output("[page] " + text); 1213 _output("[page] " + text);
1204 } 1214 }
1205 1215
1206 function _output(result) 1216 function _output(result)
1207 { 1217 {
1208 if (!outputElement) 1218 if (!outputElement)
1209 createOutputElement(); 1219 createOutputElement();
1210 outputElement.appendChild(document.createTextNode(result)); 1220 outputElement.appendChild(document.createTextNode(result));
1211 outputElement.appendChild(document.createElement("br")); 1221 outputElement.appendChild(document.createElement("br"));
1212 } 1222 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698