Summary

Harness status: OK

Found 1 tests

Details

ResultTest NameMessage
Passselect.add() with an index should work when the target is inside an optgroup.
Asserts run
Pass
assert_equals(3, 3)
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/select-add-optgroup.html:23:3)
Pass
assert_equals(Element node <option id="opt1">opt1</option>, Element node <option id="opt1">opt1</option>, "First item should be opt1.")
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/select-add-optgroup.html:24:3)
Pass
assert_equals(Element node <option>new option</option>, Element node <option>new option</option>, "Second item should be newOption.")
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/select-add-optgroup.html:25:3)
Pass
assert_equals(Element node <option id="opt2">opt2</option>, Element node <option id="opt2">opt2</option>, "Third item should be opt2.")
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/select-add-optgroup.html:26:3)
Pass
assert_equals(Element node <optgroup label="group1">     <option>new option</option>..., Element node <optgroup label="group1">     <option>new option</option>..., "The new option should be inside the optgroup.")
    at Test.<anonymous> ( /html/semantics/forms/the-select-element/select-add-optgroup.html:27:3)