OLD | NEW |
(Empty) | |
| 1 <!-- |
| 2 onconnect = function(e) { |
| 3 e.ports[0].postMessage(['FAIL', self.name]); |
| 4 } |
| 5 /* |
| 6 --> |
| 7 <!doctype html> |
| 8 <title>1 as arguments</title> |
| 9 <script src="/resources/testharness.js"></script> |
| 10 <script src="/resources/testharnessreport.js"></script> |
| 11 <div id="log"></div> |
| 12 <script> |
| 13 (async_test()).step(function() { |
| 14 var worker = new SharedWorker(1, 1); |
| 15 worker.port.addEventListener('message', this.step_func(function(e) { |
| 16 assert_equals(e.data[0], '1', 'first arg'); |
| 17 assert_equals(e.data[1], '1', 'second arg'); |
| 18 this.done(); |
| 19 }), false); |
| 20 worker.port.start(); |
| 21 }); |
| 22 </script> |
| 23 <!-- |
| 24 */ |
| 25 //--> |
OLD | NEW |