Summary

Harness status: OK

Found 3 tests

Details

ResultTest NameMessage
Pass':checked' matches checked <input>s in checkbox and radio button states, selected <option>s
Asserts run
Pass
assert_array_equals([Element node <option value="option1" id="option1" selected="">option1 ..., Element node <input type="checkbox" id="checkbox1" checked=""></input>, Element node <input type="radio" id="radio1" checked=""></input>], [Element node <option value="option1" id="option1" selected="">option1 ..., Element node <input type="checkbox" id="checkbox1" checked=""></input>, Element node <input type="radio" id="radio1" checked=""></input>])
    at Test.<anonymous> ( /html/semantics/selectors/pseudo-classes/utils.js:12:5)
Pass':checked' should no longer match <input>s whose type checkbox/radio has been removed
Asserts run
Pass
assert_array_equals([Element node <option value="option1" id="option1" selected="">option1 ...], [Element node <option value="option1" id="option1" selected="">option1 ...])
    at Test.<anonymous> ( /html/semantics/selectors/pseudo-classes/utils.js:12:5)
Pass':checked' matches clicked checkbox and radio buttons
Asserts run
Pass
assert_array_equals([Element node <option value="option2" id="option2">option2   </option>, Element node <input type="checkbox" id="checkbox2"></input>, Element node <input type="radio" id="radio2"></input>], [Element node <option value="option2" id="option2">option2   </option>, Element node <input type="checkbox" id="checkbox2"></input>, Element node <input type="radio" id="radio2"></input>])
    at Test.<anonymous> ( /html/semantics/selectors/pseudo-classes/utils.js:12:5)