Selection-getComposedRanges-range-update.html

FAILExpected8 of 9 subtests pass308 ms

Details

Test
/selection/shadow-dom/tentative/Selection-getComposedRanges-range-update.html
Harness
OK

Subtests

StatusSubtestMessage
FAILIf selection crosses shadow boundaries, getRangeAt(0) should throw an IndexSizeError because the end is not in the document tree.
assert_throws_dom: function "function () { selection.getRangeAt(0) }" did not throw
assert_throws_dom: function "function () { selection.getRangeAt(0) }" did not throw
PASSmodify getRangeAt() range: setStart() to disconnected node will collapse and remove the live range from the selection.
PASSmodify getRangeAt() range: setEnd() crosses shadow boundary into the shadow DOM and after start, which collapses live range. Composed selection range is not collapsed.
PASSmodify getRangeAt() range: setStart() crosses shadow boundary into the shadow DOM and before end, which collapses live range. Composed selection range is not collapsed.
PASSmodify getRangeAt() range: setStart() crosses shadow boundary into the shadow DOM and after end, which collapses both live range and composed selection range.
PASSmodify getRangeAt() range: selectNode() innerHost for all ranges.
PASSmodify getRangeAt() range: collapse() collapses all ranges.
PASSmodify createRange() range: adding to selection sets the selection
PASSmodify createRange() range: added to selection before setStart/setEnd calls.