mirror of
https://github.com/servo/servo
synced 2026-05-12 09:56:50 +02:00
19 lines
561 B
HTML
19 lines
561 B
HTML
<!DOCTYPE html>
|
|
<head>
|
|
<meta charset='utf-8' />
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script>
|
|
(async () => {
|
|
const scope = 'does/not/exist'
|
|
|
|
let registration = await navigator.serviceWorker.getRegistration(scope)
|
|
if (registration)
|
|
await registration.unregister()
|
|
registration = await navigator.serviceWorker.register('./sw.js', {scope})
|
|
|
|
fetch_tests_from_worker(registration.installing)
|
|
})()
|
|
</script>
|
|
</head>
|