summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/autofocus-readonly-attribute.html
blob: 90e88d14d7202840ce67e3420a53f090126d62e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCYTPE html>
<html>
<head>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}

function log(msg) {
    var console = document.getElementById("console");
    console.innerText = msg;
}
</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"); testRunner.notifyDone();'></p>
</body>
</html>