blob: d2676d0fc62334879619a6232ae0e2721442f242 [file] [log] [blame]
Tests for checkValidity() with invalid event canceling
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
"invalid" event is not canceled.
PASS input.addEventListener("invalid", nothingListener, false); !input.checkValidity() && invalidFired is true
PASS invalidFired = false; !form.checkValidity() && invalidFired is true
"invalid" event is canceled.
PASS input.addEventListener("invalid", cancelListener, false); !input.checkValidity() && invalidFired is true
PASS invalidFired = false; !form.checkValidity() && invalidFired is true
PASS successfullyParsed is true
TEST COMPLETE