OLD | NEW |
(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 |
OLD | NEW |