4 document
.getElementById("thebutton").click();
6 testRunner
.dumpAsText();
10 document
.getElementById("thediv").innerHTML
= "test passed";
15 <title>Test case for HTMLButtonElement.click()
</title>
17 <body onload=
"test();">
18 <h3>Test case for HTMLButtonElement.click()
</h3>
19 Successful if it reads
"test passed" below
<span style=
"color: red">upon loading the page
</span> <br>
20 <BUTTON id=thebutton
onclick=
"clicky();">No need to click me. In fact, don't.
</BUTTON>