blob: 92852e67b7cee98ceab390ffcbd59374fbb680aa [file] [log] [blame]
<html>
<head>
<script src="../../resources/js-test.js"></script>
<style>
body[style] { }
</style>
</head>
<body>
<textarea id="target"></textarea>
<div>The text field should accept typed characters.</div>
<pre id="console"></pre>
<script>
document.getElementById("target").addEventListener("textInput", function (evt) { evt.target.style.width = 100; });
if (window.testRunner) {
window.target = document.getElementById("target");
window.setTimeout(function() {
window.target.focus();
eventSender.keyDown("h");
eventSender.keyDown("e");
eventSender.keyDown("l");
eventSender.keyDown("l");
eventSender.keyDown("o");
shouldBe("window.target.value", '"hello"');
finishJSTest();
}, 0);
}
window.jsTestIsAsync = true;
</script>
</body>
</html>