Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / init-message-event.html
blobbf95455474b9f667c905d097267bf68ccabae03f
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="help" href="http://www.w3.org/TR/2013/WD-html51-20130528/editing.html#dom-datatransferitemlist-remove">
5 <script src="../../resources/js-test.js"></script>
6 </head>
7 <body>
8 <script>
9 description("Checks that initMessageEvent() is working");
11 var newEvent;
12 function runTest() {
13 newEvent = document.createEvent("MessageEvent");
14 shouldThrow('newEvent.initMessageEvent("message", true, true, "ff", "*", 43, window, {x:1});', '"TypeError: Failed to execute \'initMessageEvent\' on \'MessageEvent\': The 8th argument is neither an array, nor does it have indexed properties."');
15 shouldNotThrow('newEvent.initMessageEvent("message", true, true, "ff", "*", 43, window, null)');
16 shouldBeType(newEvent, MessageEvent);
19 runTest();
20 </script>
21 </body>
22 </html>