Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/unrendered-001.html

Issue 2697313005: Selection API: collapse() should recreate an internal Range. (Closed)
Patch Set: Add NeedsRebaseline for platform-dependent tests Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/editing/selection/unrendered-001.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/unrendered-001.html b/third_party/WebKit/LayoutTests/editing/selection/unrendered-001.html
index 7dd5505155a769d9141051744f067ee85e374123..9537d21dbae107cbe1d11a4d3d6039093ed47118 100644
--- a/third_party/WebKit/LayoutTests/editing/selection/unrendered-001.html
+++ b/third_party/WebKit/LayoutTests/editing/selection/unrendered-001.html
@@ -13,7 +13,10 @@ test(function() {
selection.collapse(document.getElementById('start').firstChild, 2);
assert_true(selection.isCollapsed, 'isCollapsed');
- assert_equals(selection.anchorNode, sample.lastChild, 'anchorNode');
- assert_equals(selection.anchorOffset, 3, 'anchorOffset');
+ assert_equals(selection.anchorNode, document.getElementById('start').firstChild, 'DOM anchorNode');
+ assert_equals(selection.anchorOffset, 2, 'DOM anchorOffset');
+ assert_exists(window, 'internals');
+ assert_equals(internals.visibleSelectionAnchorNode, sample.lastChild, 'Canonicalized anchorNode');
+ assert_equals(internals.visibleSelectionAnchorOffset, 3, 'Canoincalized anchorOffset');
});
</script>

Powered by Google App Engine
This is Rietveld 408576698