summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/workers/Worker-terminate-forever.html
blob: 3528bb6246dd9abd03b68702a1bb12a5616cadce (plain)
1
2
3
4
5
6
7
8
9
10
11
<!DOCTYPE html>
<title>Test Worker.terminate() for a worker that tries to run forever.</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test((t) => {
  var worker = new Worker('support/Worker-run-forever.js');
  worker.terminate();
  t.step_timeout(function() { t.done(); }, 500);
}, 'Tests terminating a worker that is trying to run forever.');
</script>