Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /workers/semantics/run-a-worker/003.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>handling for 404 response</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
async_test(t => {
const worker = new Worker('404_worker');
worker.onerror = e => t.done();
}, 'worker');
async_test(t => {
const shared = new SharedWorker('404_shared');
shared.onerror = e => t.done();
}, 'shared');
</script>