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

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

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 Tests for HTMLTextAreaElement.maxLength behaviors.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS textArea.maxLength is -1
7 PASS textArea.maxLength is -1
8 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
13 PASS textArea.maxLength is 256
14 PASS textArea.getAttribute("maxlength") is "13"
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..
16 PASS textArea.getAttribute("maxlength") is "13"
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)..
18 PASS textArea.getAttribute("maxlength") is "13"
19 PASS textArea.maxLength = 11; textArea.getAttribute("maxlength") is "11"
20 PASS textArea.maxLength is 0
21 PASS textArea.getAttribute("maxlength") is "0"
22 PASS textArea.value is "abcd"
23 PASS textArea.value is "abcde"
24 PASS textArea.value is "abc"
25 PASS textArea.value is "abc"
26 PASS textArea.value is "def"
27 PASS textArea.value is "abcdef"
28 PASS textArea.value is "abcde"
29 PASS textArea.value is "A\nB"
30 PASS textArea.value is "a\n\n"
31 PASS textArea.value is "\n\n\n"
32 Inserts 2 normal characters + a combining letter with 3 code points into a maxle ngth=3 element.
33 PASS textArea.value is "ABx"
34 PASS textArea.value.length is 3
35 PASS textArea.value is "ABC"
36 Inserts 2 normal characters + one surrogate pair into a maxlength=3 element
37 PASS textArea.value is "AB"
38 PASS textArea.value.length is 2
39 PASS textArea.value is "ABC"
40 PASS textArea.value is ""
41 PASS textArea.value is "ABC"
42 PASS textArea.value is "ABC"
43 PASS successfullyParsed is true
44
45 TEST COMPLETE
46
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698