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

Unified Diff: LayoutTests/http/tests/fetch/resources/thorough-util.js

Issue 1283163003: [Fetch][WIP] Support blob:, about:, and data: URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Cleanup. Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/fetch/script-tests/fetch.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/fetch/resources/thorough-util.js
diff --git a/LayoutTests/http/tests/fetch/resources/thorough-util.js b/LayoutTests/http/tests/fetch/resources/thorough-util.js
index ef86a7bdac394a1b536d5f83a26096e41abc224e..92e204d228751d208cfb48498dd713566b681725 100644
--- a/LayoutTests/http/tests/fetch/resources/thorough-util.js
+++ b/LayoutTests/http/tests/fetch/resources/thorough-util.js
@@ -75,6 +75,10 @@ var hasContentLength =
checkFetchResponseHeader.bind(this, 'content-length', true);
var noContentLength =
checkFetchResponseHeader.bind(this, 'content-length', false);
+var hasContentType =
+ checkFetchResponseHeader.bind(this, 'content-type', true);
+var noContentType =
+ checkFetchResponseHeader.bind(this, 'content-type', false);
var hasServerHeader =
checkFetchResponseHeader.bind(this, 'x-serviceworker-serverheader', true);
var noServerHeader =
@@ -303,7 +307,8 @@ function headersToArray(headers) {
// checkFetchResponseHeader is used only for the header names listed below.
// FIXME: Replace it with the original code below when Firefox supports
// iterable.
- ['content-length', 'x-serviceworker-serverheader'].forEach(function(name) {
+ ['content-length', 'content-type', 'x-serviceworker-serverheader'].forEach(
+ function(name) {
for (var value of headers.getAll(name))
ret.push([name, value]);
});
« no previous file with comments | « no previous file | LayoutTests/http/tests/fetch/script-tests/fetch.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698