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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/respond-with-response-body-with-invalid-chunk-worker.js

Issue 2893793004: Upstream service wrkr "respond with" tests to WPT (Closed)
Patch Set: Remove declaration of unused binding 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
OLDNEW
(Empty)
1 self.addEventListener('fetch', event => {
2 if (!event.request.url.match(/body-stream-with-invalid-chunk$/))
3 return;
4 const stream = new ReadableStream({start: controller => {
5 // The argument is intentionally a string, not a Uint8Array.
6 controller.enqueue('hello');
7 }});
8 const headers = { 'x-content-type-options': 'nosniff' };
9 event.respondWith(new Response(stream, { headers }));
10 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698