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

Unified 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 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/forms/textarea-maxlength-expected.txt
diff --git a/LayoutTests/fast/forms/textarea-maxlength-expected.txt b/LayoutTests/fast/forms/textarea-maxlength-expected.txt
index e6207568263490a5c2cfce9278f0b1d19813d17d..bb59d8647b85594167068c1e472c0876df5c242d 100644
--- a/LayoutTests/fast/forms/textarea-maxlength-expected.txt
+++ b/LayoutTests/fast/forms/textarea-maxlength-expected.txt
@@ -11,6 +11,9 @@ PASS textArea.maxLength is 256
PASS textArea.getAttribute("maxlength") is "13"
PASS textArea.maxLength = -1 threw exception IndexSizeError: Failed to set the 'maxLength' property on 'HTMLTextAreaElement': The value provided (-1) is not positive or 0..
PASS textArea.getAttribute("maxlength") is "13"
+PASS textArea.maxLength = 10 threw exception IndexSizeError: Failed to set the 'maxLength' property on 'HTMLTextAreaElement': The maxLength provided (10) is less than the minimum bound (11)..
+PASS textArea.getAttribute("maxlength") is "13"
+PASS textArea.maxLength = 11; textArea.getAttribute("maxlength") is "11"
PASS textArea.maxLength is 0
PASS textArea.getAttribute("maxlength") is "0"
PASS textArea.value is "abcd"

Powered by Google App Engine
This is Rietveld 408576698