| Index: third_party/WebKit/LayoutTests/editing/selection/collapse/table-caret-2.html
|
| diff --git a/third_party/WebKit/LayoutTests/editing/selection/collapse/table-caret-2.html b/third_party/WebKit/LayoutTests/editing/selection/collapse/table-caret-2.html
|
| index 053134f663a60da3ab72869a2299f94eb8ad6053..59ab1384f917f2e2b1ddb805fb25e5133b59c01a 100644
|
| --- a/third_party/WebKit/LayoutTests/editing/selection/collapse/table-caret-2.html
|
| +++ b/third_party/WebKit/LayoutTests/editing/selection/collapse/table-caret-2.html
|
| @@ -12,9 +12,15 @@ table, td {
|
| <script>
|
| test(function () {
|
| var selection = window.getSelection();
|
| - selection.collapse(sample, sample.childNodes.length);
|
| + let childLength = sample.childNodes.length;
|
| + selection.collapse(sample, childLength);
|
| assert_true(selection.isCollapsed, 'isCollapsed');
|
| - assert_equals(selection.anchorNode, div, 'anchorNode');
|
| - assert_equals(selection.anchorOffset, 2, 'anchorOffset');
|
| +
|
| + assert_equals(selection.anchorNode, sample, 'DOM anchorNode');
|
| + assert_equals(selection.anchorOffset, childLength, 'DOM anchorOffset');
|
| +
|
| + assert_exists(window, 'internals');
|
| + assert_equals(internals.visibleSelectionAnchorNode, div, 'Canonicalized anchorNode');
|
| + assert_equals(internals.visibleSelectionAnchorOffset, 2, 'Canonicalized anchorOffset');
|
| });
|
| </script>
|
|
|