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

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

Issue 2151273003: [DevTools] Move browser logging from Console domain to Log domain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@internals-method
Patch Set: protocol improvements 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 928 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 this._timeoutIdToMillis = {}; 939 this._timeoutIdToMillis = {};
940 } 940 }
941 } 941 }
942 942
943 WebInspector.targetManager.observeTargets({ 943 WebInspector.targetManager.observeTargets({
944 targetAdded: function(target) 944 targetAdded: function(target)
945 { 945 {
946 if (InspectorTest.CSSAgent) 946 if (InspectorTest.CSSAgent)
947 return; 947 return;
948 InspectorTest.CSSAgent = target.cssAgent(); 948 InspectorTest.CSSAgent = target.cssAgent();
949 InspectorTest.ConsoleAgent = target.consoleAgent();
950 InspectorTest.DeviceOrientationAgent = target.deviceOrientationAgent(); 949 InspectorTest.DeviceOrientationAgent = target.deviceOrientationAgent();
951 InspectorTest.DOMAgent = target.domAgent(); 950 InspectorTest.DOMAgent = target.domAgent();
952 InspectorTest.DOMDebuggerAgent = target.domdebuggerAgent(); 951 InspectorTest.DOMDebuggerAgent = target.domdebuggerAgent();
953 InspectorTest.DebuggerAgent = target.debuggerAgent(); 952 InspectorTest.DebuggerAgent = target.debuggerAgent();
954 InspectorTest.EmulationAgent = target.emulationAgent(); 953 InspectorTest.EmulationAgent = target.emulationAgent();
955 InspectorTest.HeapProfilerAgent = target.heapProfilerAgent(); 954 InspectorTest.HeapProfilerAgent = target.heapProfilerAgent();
956 InspectorTest.InspectorAgent = target.inspectorAgent(); 955 InspectorTest.InspectorAgent = target.inspectorAgent();
957 InspectorTest.LayerTreeAgent = target.layerTreeAgent(); 956 InspectorTest.LayerTreeAgent = target.layerTreeAgent();
958 InspectorTest.NetworkAgent = target.networkAgent(); 957 InspectorTest.NetworkAgent = target.networkAgent();
959 InspectorTest.PageAgent = target.pageAgent(); 958 InspectorTest.PageAgent = target.pageAgent();
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1213 _output("[page] " + text); 1212 _output("[page] " + text);
1214 } 1213 }
1215 1214
1216 function _output(result) 1215 function _output(result)
1217 { 1216 {
1218 if (!outputElement) 1217 if (!outputElement)
1219 createOutputElement(); 1218 createOutputElement();
1220 outputElement.appendChild(document.createTextNode(result)); 1219 outputElement.appendChild(document.createTextNode(result));
1221 outputElement.appendChild(document.createElement("br")); 1220 outputElement.appendChild(document.createElement("br"));
1222 } 1221 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698