Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 |
|
Bugs Nash
2016/05/03 05:48:46
Is this intentional?
nainar
2016/05/03 07:15:43
No it's an accident. Removing.
| |
| 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 { |
| 11 makeSimpleXHRWithPayload(method, url, async, null, callback); | 11 makeSimpleXHRWithPayload(method, url, async, null, callback); |
| 12 } | 12 } |
| 13 | 13 |
| 14 function makeSimpleXHRWithPayload(method, url, async, payload, callback) | 14 function makeSimpleXHRWithPayload(method, url, async, payload, callback) |
| 15 { | 15 { |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 // 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. |
| 142 InspectorTest.HARPropertyFormattersWithSize = JSON.parse(JSON.stringify(Inspecto rTest.HARPropertyFormatters)); | 142 InspectorTest.HARPropertyFormattersWithSize = JSON.parse(JSON.stringify(Inspecto rTest.HARPropertyFormatters)); |
| 143 InspectorTest.HARPropertyFormattersWithSize.size = "formatAsTypeName"; | 143 InspectorTest.HARPropertyFormattersWithSize.size = "formatAsTypeName"; |
| 144 | 144 |
| 145 }; | 145 }; |
| OLD | NEW |