blob: b54c151bdc4014a07a4b14ae6fda1c1346d8189a [file] [log] [blame]
This test checks if checkValidity() 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 checkValidityFor("input-empty") is false
PASS checkValidityFor("input-pattern-mismatch") is false
PASS checkValidityFor("textarea") is false
PASS checkValidityFor("select-no-explicit-value") is true
PASS checkValidityFor("select-placeholder") is false
PASS checkValidityFor("select-non-placeholder") is true
PASS successfullyParsed is true
TEST COMPLETE