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

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

Issue 2865313003: Upstream service worker tests to WPT (Closed)
Patch Set: Re-introduce resource script 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/invalid-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 event.respondWith(new Promise(function(resolve) {
7 var headers = new Headers;
8 headers.append('foo', 'foo');
9 headers.append('foo', 'b\0r'); // header value with a null byte
10 resolve(new Response('hello world', {'headers': headers}));
11 }));
12 });
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/invalid-header-iframe.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698