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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/addRange.html

Issue 2687273002: Selection API: Mutating a Range object after adding it to Selection should update Selection attribu… (Closed)
Patch Set: Handle diffrent root cases 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/addRange.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/addRange.html b/third_party/WebKit/LayoutTests/editing/selection/addRange.html
index 3490e32bbd8445fc2b49ea3184c2fcc0133f1891..2cb613e59110ded97eec1eceb684b181f516b2dd 100644
--- a/third_party/WebKit/LayoutTests/editing/selection/addRange.html
+++ b/third_party/WebKit/LayoutTests/editing/selection/addRange.html
@@ -11,20 +11,24 @@ range.setStart(text, 3);
range.setEnd(text, 5);
sel.addRange(range);
+range = document.createRange();
range.setStart(text, 4);
range.setEnd(text, 6);
sel.addRange(range);
+range = document.createRange();
range.setStart(text, 2);
range.setEnd(text, 3);
sel.addRange(range);
// This should have no effect (until we support discontiguous selections) since this range doesn't intersect the currently selected range.
+range = document.createRange();
range.setStart(text, 7);
range.setEnd(text, 8);
sel.addRange(range);
// Ditto.
+range = document.createRange();
range.setStart(text, 0);
range.setEnd(text, 1);
sel.addRange(range);

Powered by Google App Engine
This is Rietveld 408576698