summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/semantics/run-a-worker/003.html
blob: e96c176f20ab6aa6f01dc25184778abe9e861fd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!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>