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

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

Issue 656683005: Use parseHTMLInteger for parsing minlength and maxlength in <textarea> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add layout tests that check for leading non-ASCII whitespaces in min/maxlength attribute 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 -1
11 PASS textArea.maxLength is -1
12 PASS textArea.maxLength is 1
10 PASS textArea.maxLength is 256 13 PASS textArea.maxLength is 256
11 PASS textArea.getAttribute("maxlength") is "13" 14 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.. 15 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" 16 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).. 17 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" 18 PASS textArea.getAttribute("maxlength") is "13"
16 PASS textArea.maxLength = 11; textArea.getAttribute("maxlength") is "11" 19 PASS textArea.maxLength = 11; textArea.getAttribute("maxlength") is "11"
17 PASS textArea.maxLength is 0 20 PASS textArea.maxLength is 0
18 PASS textArea.getAttribute("maxlength") is "0" 21 PASS textArea.getAttribute("maxlength") is "0"
19 PASS textArea.value is "abcd" 22 PASS textArea.value is "abcd"
(...skipping 14 matching lines...) Expand all
34 PASS textArea.value is "AB" 37 PASS textArea.value is "AB"
35 PASS textArea.value.length is 2 38 PASS textArea.value.length is 2
36 PASS textArea.value is "ABC" 39 PASS textArea.value is "ABC"
37 PASS textArea.value is "" 40 PASS textArea.value is ""
38 PASS textArea.value is "ABC" 41 PASS textArea.value is "ABC"
39 PASS textArea.value is "ABC" 42 PASS textArea.value is "ABC"
40 PASS successfullyParsed is true 43 PASS successfullyParsed is true
41 44
42 TEST COMPLETE 45 TEST COMPLETE
43 46
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/textarea-maxlength.html ('k') | LayoutTests/fast/forms/textarea-minlength.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698