onconnect.html (431B)
1 <!doctype html> 2 <title>onconnect</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() { 8 var w1 = new SharedWorker('onconnect.js', ''); 9 w1.port.addEventListener('message', this.step_func(function(e) { 10 assert_array_equals(e.data, ['null', 'null', 'function', '']); 11 }), false); 12 w1.port.start(); 13 }); 14 </script>