OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/js-test.js"></script> |
| 3 <script> |
| 4 description("Tests the type checking of init*Event() methods."); |
| 5 shouldThrow("document.createEvent('CompositionEvent').initCompositionEvent('', f
alse, false, {}, '')"); |
| 6 shouldThrow("document.createEvent('KeyboardEvent').initKeyboardEvent('', false,
false, {}, '', 0, false, false, false, false)"); |
| 7 shouldThrow("document.createEvent('MouseEvent').initMouseEvent('', false, false,
null, 0, 0, 0, 0, 0, false, false, false, false, 0, {})"); |
| 8 shouldThrow("document.createEvent('MouseEvent').initMouseEvent('', false, false,
{}, 0, 0, 0, 0, 0, false, false, false, false, 0, null)"); |
| 9 shouldThrow("document.createEvent('MutationEvent').initMutationEvent('', false,
false, {}, '', '', '', 0)"); |
| 10 shouldThrow("document.createEvent('TextEvent').initTextEvent('', false, false, {
}, '')"); |
| 11 shouldThrow("document.createEvent('UIEvent').initUIEvent('', false, false, {}, 0
)"); |
| 12 </script> |
OLD | NEW |