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..82eedc9172f5d577fdbbd53e88188a10286ac1d1 |
--- /dev/null |
+++ b/LayoutTests/http/tests/serviceworker/resources/register.html |
@@ -0,0 +1,15 @@ |
+<!doctype html> |
+<title>register</title> |
+<script src="test-helpers.js"></script> |
+<body> |
+<script> |
+navigator.serviceWorker.register('empty-worker.js', {scope: 'scope-register'}) |
+ .then(function(registration) { |
+ registration.unregister(); |
+ window.parent.postMessage('PASS', '*'); |
+ }) |
+ .catch(function(error) { |
+ window.parent.postMessage('FAIL: ' + error.message, '*'); |
+ }); |
+</script> |
+</body> |