mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 04:39:07 -10:00
Automatic update from web-platform-testsMake Server-Timing tests more resilient (#13789) -- wpt-commits: 5c95adc476aa7273b152d2468b5e71b42757f007 wpt-pr: 13789
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>
|