WorkerGlobalScope_importScripts.htm (425B)
1 <!DOCTYPE html> 2 <title> WorkerGlobalScope API: importScripts() </title> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <div id=log></div> 6 <script> 7 async_test(function(t) { 8 var worker = new Worker("./support/ImportScripts.js"); 9 worker.onmessage = t.step_func_done(function(e) { 10 assert_equals(e.data, "Pass"); 11 }); 12 worker.postMessage("ping"); 13 }); 14 </script>