Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / serviceworker / resources / claim-worker.js
blob317feb1a02d2d0060ef02c427becc22ff9769be2
1 self.addEventListener('message', function(event) {
2     self.clients.claim()
3       .then(function(result) {
4           if (result !== undefined) {
5               event.data.port.postMessage(
6                   'FAIL: claim() should be resolved with undefined');
7               return;
8           }
9           event.data.port.postMessage('PASS');
10         })
11       .catch(function(error) {
12           event.data.port.postMessage('FAIL: exception: ' + error.name);
13         });
14   });