diff options
8 files changed, 12 insertions, 2 deletions
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js index 621d70d..9bbf79c 100644 --- a/third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/network-test.js @@ -94,11 +94,11 @@ InspectorTest.HARPropertyFormatters = { timings: "formatAsTypeName", version: "formatAsTypeName", wait: "formatAsTypeName", + _transferSize: "formatAsTypeName", _error: "skip", }; // addObject checks own properties only, so make a deep copy rather than use prototype. - InspectorTest.HARPropertyFormattersWithSize = JSON.parse(JSON.stringify(InspectorTest.HARPropertyFormatters)); InspectorTest.HARPropertyFormattersWithSize.size = "formatAsTypeName"; diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/resource-har-conversion-expected.txt b/third_party/WebKit/LayoutTests/http/tests/inspector/resource-har-conversion-expected.txt index b000e04..0d8bfaa 100644 --- a/third_party/WebKit/LayoutTests/http/tests/inspector/resource-har-conversion-expected.txt +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/resource-har-conversion-expected.txt @@ -26,6 +26,7 @@ Page reloaded. url : "http://127.0.0.1:8000/inspector/resource-har-conversion.html" } response : { + _transferSize : <number> bodySize : <number> content : { mimeType : "text/html" @@ -89,6 +90,7 @@ Page reloaded. url : "http://127.0.0.1:8000/inspector/inspector-test.js" } response : { + _transferSize : <number> bodySize : <number> content : { mimeType : "application/x-javascript" @@ -152,6 +154,7 @@ Page reloaded. url : "http://127.0.0.1:8000/inspector/network-test.js" } response : { + _transferSize : <number> bodySize : <number> content : { mimeType : "application/x-javascript" @@ -192,6 +195,7 @@ Page reloaded. url : "http://127.0.0.1:8000/inspector/resources/post-target.cgi" } response : { + _transferSize : <number> bodySize : <number> content : { compression : <number> diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/resource-har-headers-expected.txt b/third_party/WebKit/LayoutTests/http/tests/inspector/resource-har-headers-expected.txt index a866548..ce6c740 100644 --- a/third_party/WebKit/LayoutTests/http/tests/inspector/resource-har-headers-expected.txt +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/resource-har-headers-expected.txt @@ -45,6 +45,7 @@ HAR:{ url : "http://example.com/inspector-test.js" } response : { + _transferSize : <number> bodySize : 500 content : { compression : 500 diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/resource-har-headers.html b/third_party/WebKit/LayoutTests/http/tests/inspector/resource-har-headers.html index df537b2..f6c441c 100644 --- a/third_party/WebKit/LayoutTests/http/tests/inspector/resource-har-headers.html +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/resource-har-headers.html @@ -57,6 +57,7 @@ var test = function() "startedDateTime": "formatAsTypeName", "time": "formatAsTypeName", "timings": "formatAsTypeName", + "_transferSize": "formatAsTypeName", "_error": "skip" }; InspectorTest.addObject(new WebInspector.HAREntry(testRequest).build(), stillNondeterministic, "", "HAR:"); diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/resource-parameters-expected.txt b/third_party/WebKit/LayoutTests/http/tests/inspector/resource-parameters-expected.txt index 39b114c..18a606f 100644 --- a/third_party/WebKit/LayoutTests/http/tests/inspector/resource-parameters-expected.txt +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/resource-parameters-expected.txt @@ -41,6 +41,7 @@ Tests that resources panel shows form data parameters. url : "http://localhost:8000/inspector/resources/post-target.cgi?queryParam1=queryValue1&queryParam2=" } response : { + _transferSize : <number> bodySize : <number> content : { compression : <number> diff --git a/third_party/WebKit/LayoutTests/platform/linux/http/tests/inspector/resource-parameters-expected.txt b/third_party/WebKit/LayoutTests/platform/linux/http/tests/inspector/resource-parameters-expected.txt index 39b114c..18a606f 100644 --- a/third_party/WebKit/LayoutTests/platform/linux/http/tests/inspector/resource-parameters-expected.txt +++ b/third_party/WebKit/LayoutTests/platform/linux/http/tests/inspector/resource-parameters-expected.txt @@ -41,6 +41,7 @@ Tests that resources panel shows form data parameters. url : "http://localhost:8000/inspector/resources/post-target.cgi?queryParam1=queryValue1&queryParam2=" } response : { + _transferSize : <number> bodySize : <number> content : { compression : <number> diff --git a/third_party/WebKit/LayoutTests/platform/win/http/tests/inspector/resource-parameters-expected.txt b/third_party/WebKit/LayoutTests/platform/win/http/tests/inspector/resource-parameters-expected.txt index 6d5d64b..e302c88 100644 --- a/third_party/WebKit/LayoutTests/platform/win/http/tests/inspector/resource-parameters-expected.txt +++ b/third_party/WebKit/LayoutTests/platform/win/http/tests/inspector/resource-parameters-expected.txt @@ -41,6 +41,7 @@ Tests that resources panel shows form data parameters. url : "http://localhost:8000/inspector/resources/post-target.cgi?queryParam1=queryValue1&queryParam2=" } response : { + _transferSize : <number> bodySize : <number> content : { compression : <number> diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/HAREntry.js b/third_party/WebKit/Source/devtools/front_end/sdk/HAREntry.js index e340dba..cdcce79 100644 --- a/third_party/WebKit/Source/devtools/front_end/sdk/HAREntry.js +++ b/third_party/WebKit/Source/devtools/front_end/sdk/HAREntry.js @@ -104,6 +104,7 @@ WebInspector.HAREntry.prototype = { redirectURL: this._request.responseHeaderValue("Location") || "", headersSize: headersText ? headersText.length : -1, bodySize: this.responseBodySize, + _transferSize: this._request.transferSize, _error: this._request.localizedFailDescription }; }, @@ -142,7 +143,7 @@ WebInspector.HAREntry.prototype = { if (values[i] >= 0) return values[i]; } - console.assert(false, "Incomplete requet timing information."); + console.assert(false, "Incomplete request timing information."); } var blocked = firstNonNegative([timing.dnsStart, timing.connectStart, timing.sendStart]); |