<a id="a" target="i" href="about:blank"></a> | |
<input id="input" type="text" autofocus="true" onkeydown="a.click()"> | |
<iframe name="i"></iframe> | |
<script> | |
window.onload = () => { | |
if (!window.eventSender) { | |
document.body.appendChild(document.createTextNode( | |
"To run manually, type into the input field and see if text appears")); | |
return; | |
} | |
testRunner.dumpAsText(); | |
eventSender.keyDown("a"); | |
document.body.appendChild(document.createTextNode( | |
input.value == "a" ? "PASS" : "FAIL")); | |
}; | |
</script> |