Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / serviceworker / resources / register.html
blobe8713dd702cba62e48996581cd5734a83f7e9c71
1 <!doctype html>
2 <title>register</title>
3 <script src="test-helpers.js"></script>
4 <body>
5 <script>
6 navigator.serviceWorker.register('empty-worker.js', {scope: 'scope-register'})
7 .then(
8 registration => {
9 registration.unregister().then(() => {
10 window.parent.postMessage('OK', '*');
11 });
13 error => {
14 window.parent.postMessage('FAIL: ' + error.name, '*');
16 .catch(error => {
17 window.parent.postMessage('ERROR: ' + error.name, '*');
18 });
19 </script>
20 </body>