1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../resources/js-test.js"></script>
7 These tests check if leading line feeds characters in textarea as default values are parsed correctly.
10 <textarea id=
"no-line-feed">Madoka
</textarea>
12 <textarea id=
"one-line-feed">
15 <textarea id=
"two-line-feeds">
19 <textarea id=
"one-line-feed-escaped-char-and-one-line-feed">

22 <textarea id=
"two-line-feed-escaped-chars">

Homura
</textarea>
24 <p id=
"description"></p>
25 <div id=
"console"></div>
28 shouldBe('document.getElementById("no-line-feed").value', '"Madoka"');
30 shouldBe('document.getElementById("one-line-feed").value', '"Sayaka"');
32 shouldBe('document.getElementById("two-line-feeds").value', '"\\nMami"');
34 shouldBe('document.getElementById("one-line-feed-escaped-char-and-one-line-feed").value', '"\\nKyoko"');
36 shouldBe('document.getElementById("two-line-feed-escaped-chars").value', '"\\nHomura"');