5 var bt
= document
.getElementById('bt');
7 if (window
.testRunner
) {
8 testRunner
.dumpAsText();
9 eventSender
.keyDown("\r", []);
13 var console
= document
.getElementById('console');
14 console
.innerHTML
= console
.innerHTML
+ msg
+ "<br>";
18 <body onload=
"test()">
19 <form onsubmit=
"log('Test Passed'); return false;">
20 This tests that hitting the enter key on a button element submits the form.
<br>
21 <button id=
"bt"></button>
23 <div id=
"console"></div>