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>
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");
18 document
.execCommand("InsertText", false, "foo");
19 document
.execCommand("InsertLineBreak");
20 document
.execCommand("InsertText", false, "bar");
22 if (textarea
.value
!= "foo\nbar")