blob: a73eeced56b861f860680543b8fdee5a4704fb5a [file] [log] [blame]
<html>
<div id="b">
Press a key!
<input id="a">
<iframe></iframe>
</div>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
a.addEventListener("change", function() {
b.innerHTML = "PASS";
if (window.testRunner)
testRunner.notifyDone();
});
a.addEventListener("keyup", function() {
var e = document.createEvent("KeyboardEvent");
e.initKeyboardEvent('keydown', true, true, document.defaultView, 'U+0009', 0, false, false, false, false, false);
a.dispatchEvent(e);
})
document.body.offsetTop;
a.focus();
if (window.testRunner)
eventSender.keyDown('a');
</script>
</html>