Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/init-message-event.html

Issue 2831943002: bindings: Port bindings/core/v8 away from ToImplArray APIs. (Closed)
Patch Set: Check for exception in SerializedScriptValue Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <link rel="help" href="http://www.w3.org/TR/2013/WD-html51-20130528/editing.html #dom-datatransferitemlist-remove"> 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> 5 <script src="../../resources/js-test.js"></script>
6 </head> 6 </head>
7 <body> 7 <body>
8 <script> 8 <script>
9 description("Checks that initMessageEvent() is working"); 9 description("Checks that initMessageEvent() is working");
10 10
11 var newEvent; 11 var newEvent;
12 function runTest() { 12 function runTest() {
13 newEvent = document.createEvent("MessageEvent"); 13 newEvent = document.createEvent("MessageEvent");
14 shouldThrow('newEvent.initMessageEvent("message", true, true, "ff", "*", 43, window, {x:1});', '"TypeError: Failed to execute \'initMessageEvent\' on \'Mess ageEvent\': The 8th argument is neither an array, nor does it have indexed prope rties."'); 14 shouldThrow('newEvent.initMessageEvent("message", true, true, "ff", "*", 43, window, {x:1});', '"TypeError: Failed to execute \'initMessageEvent\' on \'Mess ageEvent\': Iterator getter is not callable."');
15 shouldNotThrow('newEvent.initMessageEvent("message", true, true, "ff", "*", 43, window, null)'); 15 shouldNotThrow('newEvent.initMessageEvent("message", true, true, "ff", "*", 43, window, null)');
16 shouldBeType(newEvent, MessageEvent); 16 shouldBeType(newEvent, MessageEvent);
17 } 17 }
18 18
19 runTest(); 19 runTest();
20 </script> 20 </script>
21 </body> 21 </body>
22 </html> 22 </html>
23 23
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698