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 |
+ |