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

Unified Diff: LayoutTests/fast/forms/reportValidity-invalid-expected.txt

Issue 660783002: Implement reportValidity() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Apply couple more tkent's comments + pull 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/reportValidity-invalid-expected.txt
diff --git a/LayoutTests/fast/forms/reportValidity-invalid-expected.txt b/LayoutTests/fast/forms/reportValidity-invalid-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..e2a717d8b06c45bdc6aded764a626fa7ba075af2
--- /dev/null
+++ b/LayoutTests/fast/forms/reportValidity-invalid-expected.txt
@@ -0,0 +1,29 @@
+ValidationMessageClient: main-message=Please fill out this field. sub-message=
+ValidationMessageClient: main-message=Please match the requested format. sub-message=
+ValidationMessageClient: main-message=Please fill out this field. sub-message=
+ValidationMessageClient: main-message=Please select an item in the list. sub-message=
+ValidationMessageClient: main-message=Please fill out this field. sub-message=
+This test checks if reportValidity() returns correctly a false (meaning error) result on invalid elements, and returns a true result on a blank but valid elements. Blank but non-placeholder label options are valid.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+
+PASS reportValidityFor("input-empty") is false
+PASS document.activeElement is $("input-empty")
+PASS reportValidityFor("input-pattern-mismatch") is false
+PASS document.activeElement is $("input-pattern-mismatch")
+PASS reportValidityFor("textarea") is false
+PASS document.activeElement is $("textarea")
+PASS reportValidityFor("select-no-explicit-value") is true
+PASS document.activeElement is not $("select-no-explicit-value")
+PASS reportValidityFor("select-placeholder") is false
+PASS document.activeElement is $("select-placeholder")
+PASS reportValidityFor("select-non-placeholder") is true
+PASS document.activeElement is not $("select-non-placeholder")
+PASS reportValidityFor("sad-form") is false
+PASS document.activeElement is $("input-empty")
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/fast/forms/reportValidity-invalid.html ('k') | LayoutTests/fast/forms/reportValidity-valid.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698