Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /workers/Worker-terminate-forever.html - WPT Dashboard Interop Dashboard
<!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>