summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/service-workers/service-worker/registration-script-module.https.html
blob: 9e39a1f75b27de492d5eb3842aaa254d2f662687 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<title>Service Worker: Registration (module script)</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-script.js"></script>
<script>
registration_tests_script(
    (script, options) => navigator.serviceWorker.register(
        script,
        Object.assign({type: 'module'}, options)),
    'module');
</script>