Re: selection: Do not run invalid sub-tests with unselectable endpoints. (#4946)

 [View the complete job log.](https://travis-ci.org/w3c/web-platform-tests/jobs/203947134)

# Chrome (unstable channel) #
Testing web-platform-tests at revision 08bd6bd0789edc25c65ad8964e42cc3bae96beca
Using browser at version 58.0.3013.3 dev
Starting 10 test iterations
All results were stable
## All results ##
<details>
<summary>2 tests ran</summary>
<details>
<summary><a href="http://w3c-test.org/submissions/4946/selection/collapseToStartEnd.html">/selection/collapseToStartEnd.html</a></summary>


|                                         Subtest                                         | Results |
|-----------------------------------------------------------------------------------------|---------|
|                                                                                         | OK      |
| `Range 14 [document.documentElement, 0, document.documentElement, 1] collapseToEnd()`   | FAIL    |
| `Range 17 [document.head, 1, document.head, 1] collapseToStart()`                       | FAIL    |
| `Range 35 [document, 0, document, 2] collapseToEnd()`                                   | FAIL    |
| `Range 23 [paras[0], 0, paras[0], 1] collapseToStart()`                                 | FAIL    |
| `Range 29 [paras[0], 0, paras[0].firstChild, 7] collapseToEnd()`                        | FAIL    |
| `Range 16 [document.documentElement, 1, document.documentElement, 2] collapseToEnd()`   | FAIL    |
| `Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 1] collapseToEnd()`              | FAIL    |
| `Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 9] collapseToEnd()`              | FAIL    |
| `Range 28 [paras[0].firstChild, 3, paras[3], 1] collapseToEnd()`                        | FAIL    |
| `Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1] collapseToStart()`            | PASS    |
| `Range 39 [paras[3], 1, comment, 8] collapseToEnd()`                                    | FAIL    |
| `Range 26 [paras[0].firstChild, 0, paras[1].firstChild, 0] collapseToEnd()`             | FAIL    |
| `Range 18 [document.body, 0, document.body, 1] collapseToEnd()`                         | FAIL    |
| `Range 22 [paras[0], 0, paras[0], 0] collapseToEnd()`                                   | FAIL    |
| `Range 31 [testDiv, 1, paras[2].firstChild, 5] collapseToEnd()`                         | PASS    |
| `Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1] collapseToEnd()`              | FAIL    |
| `Range 26 [paras[0].firstChild, 0, paras[1].firstChild, 0] collapseToStart()`           | PASS    |
| `Range 22 [paras[0], 0, paras[0], 0] collapseToStart()`                                 | FAIL    |
| `Range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0] collapseToStart()`            | PASS    |
| `Range 4 [paras[1].firstChild, 0, paras[1].firstChild, 0] collapseToEnd()`              | FAIL    |
| `Range 29 [paras[0], 0, paras[0].firstChild, 7] collapseToStart()`                      | FAIL    |
| `Range 4 [paras[1].firstChild, 0, paras[1].firstChild, 0] collapseToStart()`            | FAIL    |
| `Range 6 [paras[1].firstChild, 2, paras[1].firstChild, 8] collapseToEnd()`              | FAIL    |
| `Range 39 [paras[3], 1, comment, 8] collapseToStart()`                                  | FAIL    |
| `Must throw InvalidStateErr if the selection's range is null`                           | PASS    |
| `Range 15 [document.documentElement, 0, document.documentElement, 2] collapseToStart()` | FAIL    |
| `Range 2 [paras[0].firstChild, 2, paras[0].firstChild, 8] collapseToEnd()`              | PASS    |
| `Range 36 [document, 1, document, 2] collapseToStart()`                                 | FAIL    |
| `Range 30 [testDiv, 2, paras[4], 1] collapseToEnd()`                                    | FAIL    |
| `Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 8] collapseToEnd()`             | FAIL    |
| `Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 8] collapseToStart()`           | PASS    |
| `Range 36 [document, 1, document, 2] collapseToEnd()`                                   | FAIL    |
| `Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 1] collapseToStart()`            | FAIL    |
| `Range 34 [document, 0, document, 1] collapseToEnd()`                                   | FAIL    |
| `Range 34 [document, 0, document, 1] collapseToStart()`                                 | FAIL    |
| `Range 37 [testDiv, 0, comment, 5] collapseToStart()`                                   | FAIL    |
| `Range 32 [document.documentElement, 1, document.body, 0] collapseToStart()`            | FAIL    |
| `Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 9] collapseToStart()`            | PASS    |
| `Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 9] collapseToEnd()`              | FAIL    |
| `Range 17 [document.head, 1, document.head, 1] collapseToEnd()`                         | FAIL    |
| `Range 14 [document.documentElement, 0, document.documentElement, 1] collapseToStart()` | FAIL    |
| `Range 15 [document.documentElement, 0, document.documentElement, 2] collapseToEnd()`   | FAIL    |
| `Range 6 [paras[1].firstChild, 2, paras[1].firstChild, 8] collapseToStart()`            | FAIL    |
| `Range 30 [testDiv, 2, paras[4], 1] collapseToStart()`                                  | FAIL    |
| `Range 28 [paras[0].firstChild, 3, paras[3], 1] collapseToStart()`                      | FAIL    |
| `Range 35 [document, 0, document, 2] collapseToStart()`                                 | FAIL    |
| `Range 38 [paras[2].firstChild, 4, comment, 2] collapseToEnd()`                         | FAIL    |
| `Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 9] collapseToStart()`            | FAIL    |
| `Range 18 [document.body, 0, document.body, 1] collapseToStart()`                       | FAIL    |
| `Range 2 [paras[0].firstChild, 2, paras[0].firstChild, 8] collapseToStart()`            | PASS    |
| `Range 38 [paras[2].firstChild, 4, comment, 2] collapseToStart()`                       | PASS    |
| `Range 32 [document.documentElement, 1, document.body, 0] collapseToEnd()`              | FAIL    |
| `Range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0] collapseToEnd()`              | PASS    |
| `Range 37 [testDiv, 0, comment, 5] collapseToEnd()`                                     | FAIL    |
| `Range 23 [paras[0], 0, paras[0], 1] collapseToEnd()`                                   | FAIL    |
| `Range 16 [document.documentElement, 1, document.documentElement, 2] collapseToStart()` | FAIL    |
| `Range 31 [testDiv, 1, paras[2].firstChild, 5] collapseToStart()`                       | FAIL    |

</details>
<details>
<summary><a href="http://w3c-test.org/submissions/4946/selection/isCollapsed.html">/selection/isCollapsed.html</a></summary>


|                                Subtest                                | Results |
|-----------------------------------------------------------------------|---------|
|                                                                       | OK      |
| `Range 31 [testDiv, 1, paras[2].firstChild, 5]`                       | PASS    |
| `Range 37 [testDiv, 0, comment, 5]`                                   | PASS    |
| `Range 39 [paras[3], 1, comment, 8]`                                  | PASS    |
| `Range 7 [paras[1].firstChild, 2, paras[1].firstChild, 9]`            | PASS    |
| `Range 27 [paras[0].firstChild, 0, paras[1].firstChild, 8]`           | PASS    |
| `Range 38 [paras[2].firstChild, 4, comment, 2]`                       | PASS    |
| `Range 29 [paras[0], 0, paras[0].firstChild, 7]`                      | PASS    |
| `Range 32 [document.documentElement, 1, document.body, 0]`            | PASS    |
| `Range 5 [paras[1].firstChild, 0, paras[1].firstChild, 1]`            | PASS    |
| `Empty selection`                                                     | PASS    |
| `Range 26 [paras[0].firstChild, 0, paras[1].firstChild, 0]`           | PASS    |
| `Range 34 [document, 0, document, 1]`                                 | PASS    |
| `Range 15 [document.documentElement, 0, document.documentElement, 2]` | PASS    |
| `Range 1 [paras[0].firstChild, 0, paras[0].firstChild, 1]`            | PASS    |
| `Range 30 [testDiv, 2, paras[4], 1]`                                  | PASS    |
| `Range 18 [document.body, 0, document.body, 1]`                       | PASS    |
| `Range 28 [paras[0].firstChild, 3, paras[3], 1]`                      | PASS    |
| `Range 0 [paras[0].firstChild, 0, paras[0].firstChild, 0]`            | PASS    |
| `Range 36 [document, 1, document, 2]`                                 | PASS    |
| `Range 4 [paras[1].firstChild, 0, paras[1].firstChild, 0]`            | PASS    |
| `Range 2 [paras[0].firstChild, 2, paras[0].firstChild, 8]`            | PASS    |
| `Range 22 [paras[0], 0, paras[0], 0]`                                 | PASS    |
| `Range 6 [paras[1].firstChild, 2, paras[1].firstChild, 8]`            | PASS    |
| `Range 16 [document.documentElement, 1, document.documentElement, 2]` | PASS    |
| `Range 3 [paras[0].firstChild, 2, paras[0].firstChild, 9]`            | PASS    |
| `Range 23 [paras[0], 0, paras[0], 1]`                                 | PASS    |
| `Range 17 [document.head, 1, document.head, 1]`                       | PASS    |
| `Range 35 [document, 0, document, 2]`                                 | PASS    |
| `Range 14 [document.documentElement, 0, document.documentElement, 1]` | PASS    |

</details>
</details>

View on GitHub: https://github.com/w3c/web-platform-tests/pull/4946#issuecomment-281467298

Received on Tuesday, 21 February 2017 20:17:58 UTC