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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/init-event-exceptions-expected.txt

Issue 1485833004: Drop [LegacyInterfaceTypeChecking] for most init*Event() methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add tests Created 5 years 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
(Empty)
1 Tests the type checking of init*Event() methods.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS document.createEvent('CompositionEvent').initCompositionEvent('', false, fa lse, {}, '') threw exception TypeError: Failed to execute 'initCompositionEvent' on 'CompositionEvent': parameter 4 is not of type 'Window'..
7 PASS document.createEvent('KeyboardEvent').initKeyboardEvent('', false, false, { }, '', 0, false, false, false, false) threw exception TypeError: Failed to execu te 'initKeyboardEvent' on 'KeyboardEvent': parameter 4 is not of type 'Window'..
8 PASS document.createEvent('MouseEvent').initMouseEvent('', false, false, null, 0 , 0, 0, 0, 0, false, false, false, false, 0, {}) threw exception TypeError: Fail ed to execute 'initMouseEvent' on 'MouseEvent': parameter 15 is not of type 'Eve ntTarget'..
9 PASS document.createEvent('MouseEvent').initMouseEvent('', false, false, {}, 0, 0, 0, 0, 0, false, false, false, false, 0, null) threw exception TypeError: Fail ed to execute 'initMouseEvent' on 'MouseEvent': parameter 4 is not of type 'Wind ow'..
10 PASS document.createEvent('MutationEvent').initMutationEvent('', false, false, { }, '', '', '', 0) threw exception TypeError: Failed to execute 'initMutationEven t' on 'MutationEvent': parameter 4 is not of type 'Node'..
11 PASS document.createEvent('TextEvent').initTextEvent('', false, false, {}, '') t hrew exception TypeError: Failed to execute 'initTextEvent' on 'TextEvent': para meter 4 is not of type 'Window'..
12 PASS document.createEvent('UIEvent').initUIEvent('', false, false, {}, 0) threw exception TypeError: Failed to execute 'initUIEvent' on 'UIEvent': parameter 4 i s not of type 'Window'..
13 PASS successfullyParsed is true
14
15 TEST COMPLETE
16
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698