OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script> | 3 <script> |
4 if (window.layoutTestController) | 4 if (window.layoutTestController) |
5 layoutTestController.dumpAsText(); | 5 layoutTestController.dumpAsText(); |
6 | 6 |
7 window.onload = function() | 7 window.onload = function() |
8 { | 8 { |
9 channel = new MessageChannel; | 9 channel = new MessageChannel; |
10 event = document.createEvent("MessageEvent"); | 10 event = document.createEvent("MessageEvent"); |
11 | 11 |
12 event.initMessageEvent(0, 0, 0, 0, 0, 0, 0, [channel.port1, channel.port2]); | 12 event.initMessageEvent(0, 0, 0, 0, 0, 0, 0, [channel.port1, channel.port2]); |
13 | 13 |
14 Array.prototype.__defineSetter__(0, function() { | 14 Array.prototype.__defineSetter__(0, function() { |
15 event.initMessageEvent(0, 0, 0, 0, 0, 0, 0, [ ]); | 15 event.initMessageEvent(0, 0, 0, 0, 0, 0, 0, [ ]); |
16 }); | 16 }); |
17 | 17 |
18 event.ports; | 18 event.ports; |
19 } | 19 } |
20 </script> | 20 </script> |
21 </head> | 21 </head> |
22 <body> | 22 <body> |
23 This test passes if it doesn't crash. | 23 This test passes if it doesn't crash. |
24 </body> | 24 </body> |
25 </html> | 25 </html> |
OLD | NEW |