blob: 534d29565a851fa2cf0fa306bcdd79d08c1eb0c6 [file] [log] [blame]
<!DOCYTPE html>
<html>
<head>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function log(msg) {
var console = document.getElementById("console");
console.innerText = msg;
}
requestAnimationFrame(() => {
window.testRunner?.notifyDone();
});
</script>
</head>
<body>
<p>The text box should have focus console should print PASS</p>
<div id="console"></div>
<p><input type="text" name="test" id="test" readonly autofocus onfocus='log("PASS")'></p>
</body>
</html>