blob: a8e9e238e38d07aff2ce58275590f93a248edebd [file] [log] [blame]
Test for validationMessage IDL attribute for <input type=number>
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
No message
PASS testIt("", "", "") is ""
Value missing
PASS testIt("", "", "") is "value missing"
Type mismatch
PASS testIt("foo", "", "") is ""
Range overflow
PASS testIt("200", "", "100") is "range overflow"
Range underflow
PASS testIt("10", "50", "100") is "range underflow"
Step mismatch
PASS testIt("55", "0", "100", "10") is "step mismatch"
PASS successfullyParsed is true
TEST COMPLETE