eventsource-close2.htm (636B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>dedicated worker - EventSource created after: worker.close()</title> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 </head> 8 <body> 9 <div id="log"></div> 10 <script> 11 var test = async_test(); 12 test.step(function() { 13 var worker = new Worker('eventsource-close2.js') 14 worker.onmessage = function(e) { 15 test.step(function() { 16 assert_equals(e.data, EventSource.CONNECTING, 'this.readyState') 17 }) 18 test.done() 19 } 20 }) 21 </script> 22 </body> 23 </html>