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

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

Issue 1798173003: [DevTools] Added serverIPaddress to HAR output (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a couple files that were wrong Created 4 years, 9 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 // This goes before everything else to keep console message line number invarian t. 1 // This goes before everything else to keep console message line number invarian t.
2 var lastXHRIndex = 0; 2 var lastXHRIndex = 0;
3 function xhrLoadedCallback() 3 function xhrLoadedCallback()
4 { 4 {
5 // We need to make sure the console message text is unique so that we don't end up with repeat count update only. 5 // We need to make sure the console message text is unique so that we don't end up with repeat count update only.
6 console.log("XHR loaded: " + (++lastXHRIndex)); 6 console.log("XHR loaded: " + (++lastXHRIndex));
7 } 7 }
8 8
9 function makeSimpleXHR(method, url, async, callback) 9 function makeSimpleXHR(method, url, async, callback)
10 { 10 {
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 id: "formatAsTypeName", 129 id: "formatAsTypeName",
130 onContentLoad: "formatAsTypeName", 130 onContentLoad: "formatAsTypeName",
131 onLoad: "formatAsTypeName", 131 onLoad: "formatAsTypeName",
132 receive: "formatAsTypeName", 132 receive: "formatAsTypeName",
133 startedDateTime: "formatAsRecentTime", 133 startedDateTime: "formatAsRecentTime",
134 time: "formatAsTypeName", 134 time: "formatAsTypeName",
135 timings: "formatAsTypeName", 135 timings: "formatAsTypeName",
136 version: "formatAsTypeName", 136 version: "formatAsTypeName",
137 wait: "formatAsTypeName", 137 wait: "formatAsTypeName",
138 _transferSize: "formatAsTypeName", 138 _transferSize: "formatAsTypeName",
139 _error: "skip", 139 _error: "skip"
140 }; 140 };
141
142 // addObject checks own properties only, so make a deep copy rather than use pro totype. 141 // addObject checks own properties only, so make a deep copy rather than use pro totype.
143 InspectorTest.HARPropertyFormattersWithSize = JSON.parse(JSON.stringify(Inspecto rTest.HARPropertyFormatters)); 142 InspectorTest.HARPropertyFormattersWithSize = JSON.parse(JSON.stringify(Inspecto rTest.HARPropertyFormatters));
144 InspectorTest.HARPropertyFormattersWithSize.size = "formatAsTypeName"; 143 InspectorTest.HARPropertyFormattersWithSize.size = "formatAsTypeName";
145 144
146 }; 145 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698