Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / serviceworker / resources / fetch-event-async-respond-with-worker.js
blob7f66d20dfc2dff0af01dfa07f823c660b7a1ec1b
1 var result;
3 self.addEventListener('message', function(event) {
4 event.data.port.postMessage(result);
5 });
7 self.addEventListener('fetch', function(event) {
8 setTimeout(function() {
9 try {
10 event.respondWith(new Response());
11 result = 'FAIL: did not throw';
12 } catch (error) {
13 if (error.name == 'InvalidStateError')
14 result = 'PASS';
15 else
16 result = 'FAIL: Unexpected exception: ' + error;
18 }, 0);
19 });