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

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

Issue 435753003: Implement minlength for <input> and <textarea>. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add layout tests for minlength & maxlength together; fix comments 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
(Empty)
1 Tests for tooShort flag with <textarea> elements.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 No minlength and no value
7 PASS textarea.validity.tooShort is false
8
9 Non-dirty value
10 PASS textarea.value.length is 2
11 PASS textarea.validity.tooShort is false
12 PASS textarea.value.length is 1
13 PASS textarea.validity.tooShort is false
14
15 Dirty value and longer than minLength
16 PASS textarea.value.length is 1
17 PASS textarea.validity.tooShort is true
18 PASS textarea.value.length is 0
19 PASS textarea.validity.tooShort is false
20 PASS textarea.value.length is 2
21 PASS textarea.validity.tooShort is true
22 PASS textarea.value.length is 3
23 PASS textarea.validity.tooShort is false
24
25 Sets a value via DOM property
26 PASS textarea.validity.tooShort is false
27
28 Disabling makes the control valid
29 PASS textarea.validity.tooShort is true
30 PASS textarea.disabled = true; textarea.validity.tooShort is false
31 PASS textarea.disabled = false; textarea.validity.tooShort is true
32
33 A value set by resetting a form doesn't make tooShort true.
34 PASS textarea.validity.tooShort is true
35 PASS textarea.value is "ab"
36 PASS textarea.validity.tooShort is false
37
38 A value set by a child node change doesn't make tooShort true.
39 PASS textarea.validity.tooShort is false
40 PASS textarea.value is "a"
41 PASS textarea.validity.tooShort is false
42 PASS successfullyParsed is true
43
44 TEST COMPLETE
45
46
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698