blob: 994b35ae68058cdf59783e22d2dddebdf0ee71f2 [file] [log] [blame]
This tests that clicking on indeterminate checkbox flips both checked/indeterminate states and calling preventDefault restores them.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Test if clicking on unchecked indeterminate checkbox flips both checked/indeterminate states
PASS cb.checked is true
PASS cb.indeterminate is false
Test if clicking on checked indeterminate checkbox flips both checked/indeterminate states
PASS cb.checked is false
PASS cb.indeterminate is false
Test if preventDefault restores the checked/indeterminate states
PASS cb.checked is true
PASS cb.indeterminate is false
PASS cb.checked is false
PASS cb.indeterminate is true
PASS successfullyParsed is true
TEST COMPLETE