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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/iso-latin1-header-worker.js

Issue 1372423002: [Service Workers] DCHECK from WebServiceWorkerResponse::visitHTTPHeaderFields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added LayoutTest. Created 5 years, 2 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
Index: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/iso-latin1-header-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-response-xhr-worker.js b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/iso-latin1-header-worker.js
similarity index 76%
copy from third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-response-xhr-worker.js
copy to third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/iso-latin1-header-worker.js
index 465fbc91baa71669ca9c3f32117ee834de8294d0..3ab5c7e73186b49d88eaae971ce8c2a6bef5d431 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-response-xhr-worker.js
+++ b/third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/iso-latin1-header-worker.js
@@ -3,10 +3,10 @@ self.addEventListener('fetch', function(event) {
if (url.indexOf('dummy?test') == -1) {
return;
}
+
event.respondWith(new Promise(function(resolve) {
var headers = new Headers;
- headers.append('foo', 'foo');
- headers.append('foo', 'bar');
+ headers.append('TEST', 'ßÀ¿'); // header value holds the Latin1 (ISO8859-1) string.
resolve(new Response('hello world', {'headers': headers}));
}));
});

Powered by Google App Engine
This is Rietveld 408576698