blob: 9436397749fa5685bf609c83b8dc74c47b4044b8 [file] [log] [blame]
<html>
<head>
<script>
function test()
{
document.getElementById("anch").focus();
if (window.testRunner) {
testRunner.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>