Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/textarea-newline.html

Issue 1522803002: Move textarea-related tests to fast/forms/textarea/, part 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@color-uaf
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 These tests check if leading line feeds characters in textarea as default values are parsed correctly.
8
9 <br>
10 <textarea id="no-line-feed">Madoka</textarea>
11
12 <textarea id="one-line-feed">
13 Sayaka</textarea>
14
15 <textarea id="two-line-feeds">
16
17 Mami</textarea>
18
19 <textarea id="one-line-feed-escaped-char-and-one-line-feed">&#x0a;
20 Kyoko</textarea>
21
22 <textarea id="two-line-feed-escaped-chars">&#x0a;&#x0a;Homura</textarea>
23
24 <p id="description"></p>
25 <div id="console"></div>
26
27 <script>
28 shouldBe('document.getElementById("no-line-feed").value', '"Madoka"');
29
30 shouldBe('document.getElementById("one-line-feed").value', '"Sayaka"');
31
32 shouldBe('document.getElementById("two-line-feeds").value', '"\\nMami"');
33
34 shouldBe('document.getElementById("one-line-feed-escaped-char-and-one-line-feed" ).value', '"\\nKyoko"');
35
36 shouldBe('document.getElementById("two-line-feed-escaped-chars").value', '"\\nHo mura"');
37 </script>
38
39 </body>
40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698