blob: cf209d721d80fc53470658637c0d9b73fcf630f4 [file] [log] [blame]
<html>
<head>
<script>
function test()
{
document.getElementById("anch").focus();
if (window.layoutTestController) {
layoutTestController.dumpAsText();
eventSender.keyDown('s');
}
}
</script>
</head>
<body onload="test()">
This tests that focus() works on an empty anchor.<br>
<a id="anch" href="#" onkeydown="document.getElementById('console').innerText = 'TEST PASSED'"></a>
<br>
<pre id="console">TEST FAILED</pre>
</body>
</html>