incoming-message.html (469B)
1 <!doctype html> 2 <title>close() and incoming message</title> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <div id="log"></div> 6 <script> 7 setup({ single_test: true }); 8 9 var worker = new Worker('incoming-message.js'); 10 worker.onmessage = function(e) { 11 assert_unreached("Got message"); 12 }; 13 worker.onerror = function(e) { 14 assert_unreached("Got error"); 15 }; 16 worker.postMessage(1); 17 setTimeout(done, 2000); 18 </script>