4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
11 document.getElementById('tf0').focus();
12 eventSender.keyDown('a');
13 if (window.testRunner)
14 testRunner.notifyDone();
17 var res = document.getElementById('res');
18 res.innerHTML = res.innerHTML + msg + "<br>";
22 <body onload="test()">
23 This tests that when the keydown event changes focus, the keypress event will go to the new focused node.<br>
24 To run this test manually, type a character in the first field.<br>
25 <input id="tf0" onkeydown="document.getElementById('tf1').focus()" onkeypress="log('Test Failed')">
26 <input id="tf1" onkeypress="log('Test Passed')">