Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / textarea / textarea-autofocus-removal-while-focusing.html
blob1558383822973bcb228b8c65393fe453c6376212
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script>
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
7 var textarea = document.createElement("textarea");
8 textarea.setAttribute("autofocus", "");
9 textarea.addEventListener("DOMFocusIn", function () {
10 document.documentElement.innerHTML = "";
11 window.setTimeout(function() {
12 document.body.innerHTML = "PASS unless crash.";
13 testRunner.notifyDone();
14 }, 0);
15 }, false);
16 document.documentElement.appendChild(textarea);
17 </script>
18 </body>
19 </html>