/selection/collapseToStartEnd.html| status | subtest | message |
|---|---|---|
| FAIL | Must throw InvalidStateErr if the selection's range is null | assert_throws_dom: function "function() { selection.collapseToStart(); }" did not throw |
| PASS | Range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0] collapseToStart() | |
| PASS | Range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0] collapseToEnd() | |
| FAIL | Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1] collapseToStart() | assert_equals: collapseToStart() must not change the endOffset of the selection's original range expected 1 but got 0 |
| FAIL | Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1] collapseToEnd() | assert_equals: collapseToEnd() must not change the startOffset of the selection's original range expected 0 but got 1 |
| FAIL | Range 2 [paras[0].firstChild, 2, paras[0].firstChild, 8] collapseToStart() | assert_equals: collapseToStart() must not change the endOffset of the selection's original range expected 8 but got 2 |
| FAIL | Range 2 [paras[0].firstChild, 2, paras[0].firstChild, 8] collapseToEnd() | assert_equals: collapseToEnd() must not change the startOffset of the selection's original range expected 2 but got 8 |
| FAIL | Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 9] collapseToStart() | assert_equals: collapseToStart() must not change the endOffset of the selection's original range expected 9 but got 2 |
| FAIL | Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 9] collapseToEnd() | assert_equals: collapseToEnd() must not change the startOffset of the selection's original range expected 2 but got 9 |
| PASS | Range 4 [paras[1].firstChild, 0, paras[1].firstChild, 0] collapseToStart() | |
| PASS | Range 4 [paras[1].firstChild, 0, paras[1].firstChild, 0] collapseToEnd() | |
| FAIL | Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 1] collapseToStart() | assert_equals: collapseToStart() must not change the endOffset of the selection's original range expected 1 but got 0 |
| FAIL | Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 1] collapseToEnd() | assert_equals: collapseToEnd() must not change the startOffset of the selection's original range expected 0 but got 1 |
| FAIL | Range 6 [paras[1].firstChild, 2, paras[1].firstChild, 8] collapseToStart() | assert_equals: collapseToStart() must not change the endOffset of the selection's original range expected 8 but got 2 |
| FAIL | Range 6 [paras[1].firstChild, 2, paras[1].firstChild, 8] collapseToEnd() | assert_equals: collapseToEnd() must not change the startOffset of the selection's original range expected 2 but got 8 |
| FAIL | Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 9] collapseToStart() | assert_equals: collapseToStart() must not change the endOffset of the selection's original range expected 9 but got 2 |
| FAIL | Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 9] collapseToEnd() | assert_equals: collapseToEnd() must not change the startOffset of the selection's original range expected 2 but got 9 |
| FAIL | Range 14 [document.documentElement, 0, document.documentElement, 1] collapseToStart() | assert_equals: collapseToStart() must not change the endOffset of the selection's original range expected 1 but got 0 |
| FAIL | Range 14 [document.documentElement, 0, document.documentElement, 1] collapseToEnd() | assert_equals: collapseToEnd() must not change the startOffset of the selection's original range expected 0 but got 1 |
| FAIL | Range 15 [document.documentElement, 0, document.documentElement, 2] collapseToStart() | assert_equals: collapseToStart() must not change the endOffset of the selection's original range expected 2 but got 0 |
| FAIL | Range 15 [document.documentElement, 0, document.documentElement, 2] collapseToEnd() | assert_equals: collapseToEnd() must not change the startOffset of the selection's original range expected 0 but got 2 |
| FAIL | Range 16 [document.documentElement, 1, document.documentElement, 2] collapseToStart() | assert_equals: collapseToStart() must not change the endOffset of the selection's original range expected 2 but got 1 |
| FAIL | Range 16 [document.documentElement, 1, document.documentElement, 2] collapseToEnd() | assert_equals: collapseToEnd() must not change the startOffset of the selection's original range expected 1 but got 2 |
| PASS | Range 17 [document.head, 1, document.head, 1] collapseToStart() | |
| PASS | Range 17 [document.head, 1, document.head, 1] collapseToEnd() | |
| FAIL | Range 18 [document.body, 0, document.body, 1] collapseToStart() | assert_equals: collapseToStart() must not change the endOffset of the selection's original range expected 1 but got 0 |
| FAIL | Range 18 [document.body, 0, document.body, 1] collapseToEnd() | assert_equals: collapseToEnd() must not change the startOffset of the selection's original range expected 0 but got 1 |
| PASS | Range 22 [paras[0], 0, paras[0], 0] collapseToStart() | |
| PASS | Range 22 [paras[0], 0, paras[0], 0] collapseToEnd() | |
| FAIL | Range 23 [paras[0], 0, paras[0], 1] collapseToStart() | assert_equals: collapseToStart() must not change the endOffset of the selection's original range expected 1 but got 0 |
| FAIL | Range 23 [paras[0], 0, paras[0], 1] collapseToEnd() | assert_equals: collapseToEnd() must not change the startOffset of the selection's original range expected 0 but got 1 |
| FAIL | Range 26 [paras[0].firstChild, 0, paras[1].firstChild, 0] collapseToStart() | assert_equals: collapseToStart() must not change the endContainer of the selection's original range expected Text node "Ijklmnop " but got Text node "Äb̈c̈d̈ëf̈g̈ḧ " |
| FAIL | Range 26 [paras[0].firstChild, 0, paras[1].firstChild, 0] collapseToEnd() | assert_equals: collapseToEnd() must not change the startContainer of the selection's original range expected Text node "Äb̈c̈d̈ëf̈g̈ḧ " but got Text node "Ijklmnop " |
| FAIL | Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 8] collapseToStart() | assert_equals: collapseToStart() must not change the endContainer of the selection's original range expected Text node "Ijklmnop " but got Text node "Äb̈c̈d̈ëf̈g̈ḧ " |
| FAIL | Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 8] collapseToEnd() | assert_equals: collapseToEnd() must not change the startContainer of the selection's original range expected Text node "Äb̈c̈d̈ëf̈g̈ḧ " but got Text node "Ijklmnop " |
| FAIL | Range 28 [paras[0].firstChild, 3, paras[3], 1] collapseToStart() | assert_equals: collapseToStart() must not change the endContainer of the selection's original range expected Element node <p id="d" style="display:none">Yzabcdef</p> but got Text node "Äb̈c̈d̈ëf̈g̈h… |
| FAIL | Range 28 [paras[0].firstChild, 3, paras[3], 1] collapseToEnd() | assert_equals: collapseToEnd() must not change the startContainer of the selection's original range expected Text node "Äb̈c̈d̈ëf̈g̈ḧ " but got Element node <p id="d" style="display:none">Yzabcdef<… |
| FAIL | Range 29 [paras[0], 0, paras[0].firstChild, 7] collapseToStart() | assert_equals: collapseToStart() must not change the endContainer of the selection's original range expected Text node "Äb̈c̈d̈ëf̈g̈ḧ " but got Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ </p> |
| FAIL | Range 29 [paras[0], 0, paras[0].firstChild, 7] collapseToEnd() | assert_equals: collapseToEnd() must not change the startContainer of the selection's original range expected Element node <p id="a">Äb̈c̈d̈ëf̈g̈ḧ </p> but got Text node "Äb̈c̈d̈ëf̈g̈ḧ " |
| FAIL | Range 30 [testDiv, 2, paras[4], 1] collapseToStart() | assert_equals: collapseToStart() must not change the endContainer of the selection's original range expected Element node <p id="e" style="display:none">Ghijklmn</p> but got Element node <div id="test… |
| FAIL | Range 30 [testDiv, 2, paras[4], 1] collapseToEnd() | assert_equals: collapseToEnd() must not change the startContainer of the selection's original range expected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ </p><p id="b" s... but got Element n… |
| FAIL | Range 31 [testDiv, 1, paras[2].firstChild, 5] collapseToStart() | assert_equals: collapseToStart() must not change the endContainer of the selection's original range expected Text node "Qrstuvwx" but got Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ </p><p … |
| FAIL | Range 31 [testDiv, 1, paras[2].firstChild, 5] collapseToEnd() | assert_equals: collapseToEnd() must not change the startContainer of the selection's original range expected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ </p><p id="b" s... but got Text node… |
| FAIL | Range 32 [document.documentElement, 1, document.body, 0] collapseToStart() | assert_equals: collapseToStart() must not change the endContainer of the selection's original range expected Element node <body><div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ </p><p id... but got Element n… |
| FAIL | Range 32 [document.documentElement, 1, document.body, 0] collapseToEnd() | assert_equals: collapseToEnd() must not change the startContainer of the selection's original range expected Element node <html><head><title>Selection.collapseTo(Start|End)() test... but got Element n… |
| FAIL | Range 34 [document, 0, document, 1] collapseToStart() | assert_equals: collapseToStart() must not change the endOffset of the selection's original range expected 1 but got 0 |
| FAIL | Range 34 [document, 0, document, 1] collapseToEnd() | assert_equals: collapseToEnd() must not change the startOffset of the selection's original range expected 0 but got 1 |
| FAIL | Range 35 [document, 0, document, 2] collapseToStart() | assert_equals: collapseToStart() must not change the endOffset of the selection's original range expected 2 but got 0 |
| FAIL | Range 35 [document, 0, document, 2] collapseToEnd() | assert_equals: collapseToEnd() must not change the startOffset of the selection's original range expected 0 but got 2 |
| FAIL | Range 36 [document, 1, document, 2] collapseToStart() | assert_equals: collapseToStart() must not change the endOffset of the selection's original range expected 2 but got 1 |
| FAIL | Range 36 [document, 1, document, 2] collapseToEnd() | assert_equals: collapseToEnd() must not change the startOffset of the selection's original range expected 1 but got 2 |
| FAIL | Range 37 [testDiv, 0, comment, 5] collapseToStart() | assert_equals: collapseToStart() must not change the endContainer of the selection's original range expected Comment node <!--Alphabet soup?--> but got Element node <div id="test"><p id="a">Äb̈c̈d̈ë… |
| FAIL | Range 37 [testDiv, 0, comment, 5] collapseToEnd() | assert_equals: collapseToEnd() must not change the startContainer of the selection's original range expected Element node <div id="test"><p id="a">Äb̈c̈d̈ëf̈g̈ḧ </p><p id="b" s... but got Comment n… |
| FAIL | Range 38 [paras[2].firstChild, 4, comment, 2] collapseToStart() | assert_equals: collapseToStart() must not change the endContainer of the selection's original range expected Comment node <!--Alphabet soup?--> but got Text node "Qrstuvwx" |
| FAIL | Range 38 [paras[2].firstChild, 4, comment, 2] collapseToEnd() | assert_equals: collapseToEnd() must not change the startContainer of the selection's original range expected Text node "Qrstuvwx" but got Comment node <!--Alphabet soup?--> |
| FAIL | Range 39 [paras[3], 1, comment, 8] collapseToStart() | assert_equals: collapseToStart() must not change the endContainer of the selection's original range expected Comment node <!--Alphabet soup?--> but got Element node <p id="d" style="display:none">Yzab… |
| FAIL | Range 39 [paras[3], 1, comment, 8] collapseToEnd() | assert_equals: collapseToEnd() must not change the startContainer of the selection's original range expected Element node <p id="d" style="display:none">Yzabcdef</p> but got Comment node <!--Alphabet … |
bundle built 2026-07-16T07:16:48.063Z