blob: 3528bb6246dd9abd03b68702a1bb12a5616cadce [file] [log] [blame]
<!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>