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

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

Issue 435753003: Implement minlength for <input> and <textarea>. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add more layout tests Created 6 years, 2 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
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: Failed to set the ' maxLength' property on 'HTMLTextAreaElement': The value provided (-1) is not pos itive or 0.. 12 PASS textArea.maxLength = -1 threw exception IndexSizeError: Failed to set the ' maxLength' property on 'HTMLTextAreaElement': The value provided (-1) is not pos itive or 0..
13 PASS textArea.getAttribute("maxlength") is "13" 13 PASS textArea.getAttribute("maxlength") is "13"
14 PASS textArea.maxLength = 10 threw exception IndexSizeError: Failed to set the ' maxLength' property on 'HTMLTextAreaElement': The maxLength provided (10) is les s than the minimum bound (11)..
15 PASS textArea.getAttribute("maxlength") is "13"
16 PASS textArea.maxLength = 11; textArea.getAttribute("maxlength") is "11"
14 PASS textArea.maxLength is 0 17 PASS textArea.maxLength is 0
15 PASS textArea.getAttribute("maxlength") is "0" 18 PASS textArea.getAttribute("maxlength") is "0"
16 PASS textArea.value is "abcd" 19 PASS textArea.value is "abcd"
17 PASS textArea.value is "abcde" 20 PASS textArea.value is "abcde"
18 PASS textArea.value is "abc" 21 PASS textArea.value is "abc"
19 PASS textArea.value is "abc" 22 PASS textArea.value is "abc"
20 PASS textArea.value is "def" 23 PASS textArea.value is "def"
21 PASS textArea.value is "abcdef" 24 PASS textArea.value is "abcdef"
22 PASS textArea.value is "abcde" 25 PASS textArea.value is "abcde"
23 PASS textArea.value is "A\nB" 26 PASS textArea.value is "A\nB"
24 PASS textArea.value is "a\n\n" 27 PASS textArea.value is "a\n\n"
25 PASS textArea.value is "\n\n\n" 28 PASS textArea.value is "\n\n\n"
26 Inserts 2 normal characters + a combining letter with 3 code points into a maxle ngth=3 element. 29 Inserts 2 normal characters + a combining letter with 3 code points into a maxle ngth=3 element.
27 PASS textArea.value is "ABx" 30 PASS textArea.value is "ABx"
28 PASS textArea.value.length is 3 31 PASS textArea.value.length is 3
29 PASS textArea.value is "ABC" 32 PASS textArea.value is "ABC"
30 Inserts 2 normal characters + one surrogate pair into a maxlength=3 element 33 Inserts 2 normal characters + one surrogate pair into a maxlength=3 element
31 PASS textArea.value is "AB" 34 PASS textArea.value is "AB"
32 PASS textArea.value.length is 2 35 PASS textArea.value.length is 2
33 PASS textArea.value is "ABC" 36 PASS textArea.value is "ABC"
34 PASS textArea.value is "" 37 PASS textArea.value is ""
35 PASS textArea.value is "ABC" 38 PASS textArea.value is "ABC"
36 PASS textArea.value is "ABC" 39 PASS textArea.value is "ABC"
37 PASS successfullyParsed is true 40 PASS successfullyParsed is true
38 41
39 TEST COMPLETE 42 TEST COMPLETE
40 43
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698