Worker-terminate-forever.html (430B)
1 <!DOCTYPE html> 2 <title>Test Worker.terminate() for a worker that tries to run forever.</title> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <script> 6 test((t) => { 7 var worker = new Worker('support/Worker-run-forever.js'); 8 worker.terminate(); 9 t.step_timeout(function() { t.done(); }, 500); 10 }, 'Tests terminating a worker that is trying to run forever.'); 11 </script>