OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../js/resources/js-test-pre.js"></script> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <script> | 6 <script> |
7 description("Tests various use cases when cloning MessagePorts."); | 7 description("Tests various use cases when cloning MessagePorts."); |
8 window.jsTestIsAsync = true; | 8 window.jsTestIsAsync = true; |
9 | 9 |
10 var channel = new MessageChannel; | 10 var channel = new MessageChannel; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 channel.port2.onmessage = function(evt) { | 84 channel.port2.onmessage = function(evt) { |
85 testEvent = evt; | 85 testEvent = evt; |
86 shouldNotBe("testEvent.ports", "null"); | 86 shouldNotBe("testEvent.ports", "null"); |
87 shouldBe("testEvent.ports.length", "1"); | 87 shouldBe("testEvent.ports.length", "1"); |
88 shouldBe("testEvent.data", "'closed'"); | 88 shouldBe("testEvent.data", "'closed'"); |
89 | 89 |
90 finishJSTest(); | 90 finishJSTest(); |
91 } | 91 } |
92 } | 92 } |
93 </script> | 93 </script> |
94 <script src="../js/resources/js-test-post.js"></script> | |
95 </body> | 94 </body> |
96 </html> | 95 </html> |
OLD | NEW |