Commit 4461b89a authored by Adam Rice's avatar Adam Rice Committed by Commit Bot

Re-enable disabled checks in resource-timing-sizes-multipart.html

The checks of entry.encodedBodySize and entry.decodedBodySize in the
http/tests/misc/resource-timing-sizes-multipart.html layout test were
disabled because the values of those fields were nonsense.

Those fields now have meaningful values, so re-enable the checks.

BUG=631004

Change-Id: Id7902c194d03b4f26b9bdab5c891aa21cbddd01c
Reviewed-on: https://chromium-review.googlesource.com/1036965Reviewed-by: default avatarYutaka Hirano <yhirano@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#556379}
parent 2d429e0e
......@@ -26,10 +26,8 @@ function waitForEntryWithUrl(absoluteUrl) {
function checkTransferSize(entry) {
// These comparisons are not strict because multipart responses are
// non-standard. Any reasonable answer is acceptable.
// TODO(ricea): encodedBodySize and decodedBodySize don't pass.
// Fix the code or make this test even more relaxed. See crbug.com/631004.
// assert_greater_than(entry.encodedBodySize, abePngSize - 1, 'encodedBodySize');
// assert_greater_than(entry.decodedBodySize, abePngSize - 1, 'decodedBodySize');
assert_greater_than(entry.encodedBodySize, abePngSize - 1, 'encodedBodySize');
assert_greater_than(entry.decodedBodySize, abePngSize - 1, 'decodedBodySize');
assert_greater_than(entry.transferSize, abePngSize + minHeaderSize, 'transferSize');
t.done();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment