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

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

Issue 660783002: Implement reportValidity() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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-002-expected.txt
diff --git a/LayoutTests/fast/forms/reportValidity-002-expected.txt b/LayoutTests/fast/forms/reportValidity-002-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..bd1342dea67e5e0af9c831dd03d2438b37e1592d
--- /dev/null
+++ b/LayoutTests/fast/forms/reportValidity-002-expected.txt
@@ -0,0 +1,26 @@
+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=
+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 backgroundOf("input-empty") is focusedColor
+PASS reportValidityFor("input-pattern-mismatch") is false
+PASS backgroundOf("input-pattern-mismatch") is focusedColor
+PASS reportValidityFor("textarea") is false
+PASS backgroundOf("textarea") is focusedColor
+PASS reportValidityFor("select-no-explicit-value") is true
+PASS backgroundOf("select-no-explicit-value") is unfocusedColor
+PASS reportValidityFor("select-placeholder") is false
+PASS backgroundOf("select-placeholder") is focusedColor
+PASS reportValidityFor("select-non-placeholder") is true
+PASS backgroundOf("select-non-placeholder") is unfocusedColor
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698