| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../../resources/js-test-pre.js"></script> |
| if (!window.eventSender || !window.internals || !window.testRunner) |
| document.querySelector("#foo").focus(); |
| for (var i = 0; i < 11; i++) |
| eventSender.keyDown("delete"); |
| function checkInputEvent(event) |
| debug("Fired `oninput` handler!"); |
| function checkBeforeInputEvent(event) |
| debug("Fired `onbeforeinput` handler!"); |
| <body onload=beginTest()> |
| <div id="foo" contenteditable oninput=checkInputEvent(event) onbeforeinput=checkBeforeInputEvent(event)> |
| <script src="../../resources/js-test-post.js"></script> |