Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / 11423.html
blob58f4e70068b944e273b05ebf6879ccc6bde3f2e4
1 <p>This tests to see that a line break inserted in a textarea is serialized as a '\n'.</p>
2 <textarea rows="5" id="textarea"></textarea>
3 <ul id="console"></ul>
5 <script>
6 function log(str) {
7 var li = document.createElement("li");
8 li.appendChild(document.createTextNode(str));
9 var console = document.getElementById("console");
10 console.appendChild(li);
13 if (window.testRunner)
14 window.testRunner.dumpAsText();
16 var textarea = document.getElementById("textarea");
17 textarea.focus();
18 document.execCommand("InsertText", false, "foo");
19 document.execCommand("InsertLineBreak");
20 document.execCommand("InsertText", false, "bar");
22 if (textarea.value != "foo\nbar")
23 log("Failure");
24 else
25 log("Success");
26 </script>