Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /service-workers/service-worker/rejections.https.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Service Worker: Rejection Types</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
(function() {
var t = async_test('Rejections are DOMExceptions');
t.step(function() {
t.step_func(function() { assert_unreached('Registration should fail'); }),
t.step_func(function(reason) {
assert_true(reason instanceof DOMException);
assert_true(reason instanceof Error);
t.done();
}));
});
}());
</script>