Service Worker Tests

Demonstrates running testharness based tests inside a service worker.

The test harness should time out due to one of the tests inside the worker timing out.

This test assumes that the browser supports ServiceWorkers.

Summary

Harness status: OK

Found 2 tests

Details

ResultTest NameMessage
PassBrowser supports ServiceWorker
Asserts run
Pass
assert_true(true, "navigator.serviceWorker exists")
    at Test.<anonymous> ( /resources/test/tests/functional/worker-service.html:18:9)
FailRegister ServiceWorkerpromise_test: Unhandled rejection with value: object "TypeError: Cannot read properties of undefined (reading 'unregister')"
Error
    at get_stack (https://www1.wpt.live/resources/testharness.js:4567:21)
    at new AssertionError (https://www1.wpt.live/resources/testharness.js:4560:22)
    at assert (https://www1.wpt.live/resources/testharness.js:4544:19)
    at Test.<anonymous> (https://www1.wpt.live/resources/testharness.js:764:29)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2638:25)
    at https://www1.wpt.live/resources/testharness.js:2685:35
Asserts runNo asserts ran