1 // META: title=MessageEvent
3 var prefixes = ['moz', 'ms', 'o', 'webkit'];
4 prefixes.forEach(function(prefix) {
5 var name = prefix + "InitMessageEvent";
8 assert_false(name in MessageEvent.prototype);
9 }, name + " on the prototype");
12 var event = new MessageEvent("message");
13 assert_false(name in event);
14 }, name + " on the instance");
18 var event = new MessageEvent("message");
19 assert_throws_js(TypeError, function() {
20 event.initMessageEvent();
21 }, "Not enough arguments to initMessageEvent");
22 }, "initMessageEvent with no arguments");