Sign in
chromium
/
chromium
/
src
/
197b0cd027d15754e48dce24add9a785cbd72e3a
/
.
/
third_party
/
WebKit
/
LayoutTests
/
http
/
tests
/
serviceworker
/
resources
/
fetch-event-synthetic-respond-with-worker.js
blob: 1ac62bbdef19ad438c8852fe282907af651a9f37 [
file
] [
log
] [
blame
]
importScripts
(
'/resources/testharness.js'
);
test
(()
=>
{
var
req
=
new
Request
(
'https://www.example.com/'
,
{
method
:
'POST'
});
new
FetchEvent
(
'fetch'
,
{
request
:
req
}).
respondWith
(
'foo'
);
},
'Calling respondWith should not crash'
);