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

Side by Side Diff: LayoutTests/fast/forms/textarea-maxlength-expected.txt

Issue 22590003: input/textarea: Count value length with the standard way. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: comment in a test Created 7 years, 4 months 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 | Annotate | Revision Log
OLDNEW
1 Tests for HTMLTextAreaElement.maxLength behaviors. 1 Tests for HTMLTextAreaElement.maxLength behaviors.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS textArea.maxLength is -1 6 PASS textArea.maxLength is -1
7 PASS textArea.maxLength is -1 7 PASS textArea.maxLength is -1
8 PASS textArea.maxLength is -1 8 PASS textArea.maxLength is -1
9 PASS textArea.maxLength is 1 9 PASS textArea.maxLength is 1
10 PASS textArea.maxLength is 256 10 PASS textArea.maxLength is 256
11 PASS textArea.getAttribute("maxlength") is "13" 11 PASS textArea.getAttribute("maxlength") is "13"
12 PASS textArea.maxLength = -1 threw exception IndexSizeError: Index or size was n egative, or greater than the allowed value.. 12 PASS textArea.maxLength = -1 threw exception IndexSizeError: Index or size was n egative, or greater than the allowed value..
13 PASS textArea.getAttribute("maxlength") is "13" 13 PASS textArea.getAttribute("maxlength") is "13"
14 PASS textArea.maxLength is 0 14 PASS textArea.maxLength is 0
15 PASS textArea.getAttribute("maxlength") is "0" 15 PASS textArea.getAttribute("maxlength") is "0"
16 PASS textArea.value is "abcd" 16 PASS textArea.value is "abcd"
17 PASS textArea.value is "abcde" 17 PASS textArea.value is "abcde"
18 PASS textArea.value is "abc" 18 PASS textArea.value is "abc"
19 PASS textArea.value is "abc" 19 PASS textArea.value is "abc"
20 PASS textArea.value is "def" 20 PASS textArea.value is "def"
21 PASS textArea.value is "abcdef" 21 PASS textArea.value is "abcdef"
22 PASS textArea.value is "abcde" 22 PASS textArea.value is "abcde"
23 PASS textArea.value is "A\nB" 23 PASS textArea.value is "A\nB"
24 PASS textArea.value is "a\n\n" 24 PASS textArea.value is "a\n\n"
25 PASS textArea.value is "\n\n\n" 25 PASS textArea.value is "\n\n\n"
26 PASS textArea.value is "AB" + fancyX 26 Inserts 2 normal characters + a combining letter with 3 code points into a maxle ngth=3 element.
27 PASS textArea.value.length is 5 27 PASS textArea.value is "ABx"
28 PASS textArea.value.length is 3
28 PASS textArea.value is "ABC" 29 PASS textArea.value is "ABC"
29 PASS textArea.value is "AB" + u10000 30 Inserts 2 normal characters + one surrogate pair into a maxlength=3 element
30 PASS textArea.value.length is 4 31 PASS textArea.value is "AB"
32 PASS textArea.value.length is 2
31 PASS textArea.value is "ABC" 33 PASS textArea.value is "ABC"
32 PASS textArea.value is "" 34 PASS textArea.value is ""
33 PASS textArea.value is "ABC" 35 PASS textArea.value is "ABC"
34 PASS textArea.value is "ABC" 36 PASS textArea.value is "ABC"
35 PASS successfullyParsed is true 37 PASS successfullyParsed is true
36 38
37 TEST COMPLETE 39 TEST COMPLETE
38 40
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/textarea-maxlength.html ('k') | Source/core/html/HTMLTextAreaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698