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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/skip-not-adjacent-contenteditable.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/skip-not-adjacent-contenteditable.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/skip-not-adjacent-contenteditable.html b/third_party/WebKit/LayoutTests/editing/selection/skip-not-adjacent-contenteditable.html
index 5826d2f5d996d32b49c2d1210dc90127f82dc3da..b14dc1b2d8a772f7047496985465a1768f3285ac 100644
--- a/third_party/WebKit/LayoutTests/editing/selection/skip-not-adjacent-contenteditable.html
+++ b/third_party/WebKit/LayoutTests/editing/selection/skip-not-adjacent-contenteditable.html
@@ -16,11 +16,11 @@ var before = document.getElementById("before");
var selection = window.getSelection();
selection.collapse(before, 0);
selection.modify("move", "backward", "character");
-shouldBe("selection.focusNode.parentElement", "before");
+shouldBe("selection.focusNode", "before");
selection.collapse(before, 1);
selection.modify("move", "forward", "character");
-shouldBe("selection.focusNode.parentElement", "before");
+shouldBe("selection.focusNode", "before");
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698