summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-autofocus-removal-while-focusing.html
blob: 1558383822973bcb228b8c65393fe453c6376212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html>
<body>
<script>
testRunner.dumpAsText();
testRunner.waitUntilDone();
var textarea = document.createElement("textarea");
textarea.setAttribute("autofocus", "");
textarea.addEventListener("DOMFocusIn", function () {
    document.documentElement.innerHTML = "";
    window.setTimeout(function() {
        document.body.innerHTML = "PASS unless crash.";
        testRunner.notifyDone();
    }, 0);
}, false);
document.documentElement.appendChild(textarea);
</script>
</body>
</html>