chromium/third_party/blink/web_tests/external/wpt/workers/Worker-terminate-forever.html

<!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>