blob: 178295a66eca4ed28245a27d3fb941ec296fd0e1 [file]
Test for validationMessage IDL attribute for <input type=date>
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
No message
PASS testIt("", "", "") is ""
Value missing
PASS testIt("", "", "") is "Fill out this field"
Type mismatch
PASS testIt("foo", "", "") is ""
Range overflow
PASS testIt("1982-11-02", "", "1970-12-31") is "Value must be less than or equal to 1970-12-31"
Range underflow
PASS testIt("1982-11-02", "1990-05-25", "1990-12-24") is "Value must be greater than or equal to 1990-05-25"
Step mismatch
PASS testIt("1982-11-02", "", "", "123") is ""
PASS successfullyParsed is true
TEST COMPLETE