| Index: LayoutTests/http/tests/serviceworker/resources/register.html
|
| diff --git a/LayoutTests/http/tests/serviceworker/resources/register.html b/LayoutTests/http/tests/serviceworker/resources/register.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e8713dd702cba62e48996581cd5734a83f7e9c71
|
| --- /dev/null
|
| +++ b/LayoutTests/http/tests/serviceworker/resources/register.html
|
| @@ -0,0 +1,20 @@
|
| +<!doctype html>
|
| +<title>register</title>
|
| +<script src="test-helpers.js"></script>
|
| +<body>
|
| +<script>
|
| +navigator.serviceWorker.register('empty-worker.js', {scope: 'scope-register'})
|
| + .then(
|
| + registration => {
|
| + registration.unregister().then(() => {
|
| + window.parent.postMessage('OK', '*');
|
| + });
|
| + },
|
| + error => {
|
| + window.parent.postMessage('FAIL: ' + error.name, '*');
|
| + })
|
| + .catch(error => {
|
| + window.parent.postMessage('ERROR: ' + error.name, '*');
|
| + });
|
| +</script>
|
| +</body>
|
|
|