Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / textarea-trailing-newline.html
blob9357342bfb8e2d6bcc546334d132013961db691c
1 <script>
2 function test()
4 if (window.testRunner)
5 testRunner.dumpAsText();
6 var ta = document.getElementById("ta");
7 ta.focus();
8 document.execCommand("InsertLineBreak");
9 var result = ta.value;
10 if (result == "\n")
11 document.write("<p>Hooray, the test was successful!</p>");
12 else
13 document.write("<p>The test failed, result was '" + result.replace("\n", "\\n") + "'.</p>");
15 </script>
16 <body onload="test()">
17 <p><textarea id="ta"></textarea></p>