summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/service-workers/service-worker/registration-security-error.https.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/service-workers/service-worker/registration-security-error.https.html')
-rw-r--r--testing/web-platform/tests/service-workers/service-worker/registration-security-error.https.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/web-platform/tests/service-workers/service-worker/registration-security-error.https.html b/testing/web-platform/tests/service-workers/service-worker/registration-security-error.https.html
new file mode 100644
index 0000000000..860c2d22ea
--- /dev/null
+++ b/testing/web-platform/tests/service-workers/service-worker/registration-security-error.https.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<title>Service Worker: Registration (SecurityError)</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="resources/test-helpers.sub.js"></script>
+<script src="resources/registration-tests-security-error.js"></script>
+<script>
+registration_tests_security_error((script, options) => navigator.serviceWorker.register(script, options));
+</script>