OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <title>message channel as ports</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 channel = new MessageChannel(); |
| 9 channel[0] = channel.port1; |
| 10 channel[1] = channel.port2; |
| 11 channel.length = 2; |
| 12 postMessage('', '*', channel); |
| 13 onmessage = t.step_func(function(e) { |
| 14 assert_equals(e.ports.length, 2); |
| 15 t.done(); |
| 16 }); |
| 17 }); |
| 18 </script> |
| 19 |
OLD | NEW |