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

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

Issue 2878683002: Upstream service worker header test to WPT (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/iso-latin1-header-iframe.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 self.addEventListener('fetch', function(event) {
2 var url = event.request.url;
3 if (url.indexOf('dummy?test') == -1) {
4 return;
5 }
6
7 event.respondWith(new Promise(function(resolve) {
8 var headers = new Headers;
9 headers.append('TEST', 'ßÀ¿'); // header value holds the Latin1 (ISO8859 -1) string.
10 resolve(new Response('hello world', {'headers': headers}));
11 }));
12 });
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/iso-latin1-header-iframe.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698