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

Unified Diff: third_party/WebKit/LayoutTests/fast/css-generated-content/crash-selection-editing-removes-pseudo.html

Issue 1785663002: Make setBaseAndExtent's arguments non-optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use collapse() where possible (one test) Created 4 years, 8 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/fast/css-generated-content/crash-selection-editing-removes-pseudo.html
diff --git a/third_party/WebKit/LayoutTests/fast/css-generated-content/crash-selection-editing-removes-pseudo.html b/third_party/WebKit/LayoutTests/fast/css-generated-content/crash-selection-editing-removes-pseudo.html
index 18e3374f396e969e1d29e421a017fdc5f7e479db..f4985652fa5b65684634393291d5288ed874eefd 100644
--- a/third_party/WebKit/LayoutTests/fast/css-generated-content/crash-selection-editing-removes-pseudo.html
+++ b/third_party/WebKit/LayoutTests/fast/css-generated-content/crash-selection-editing-removes-pseudo.html
@@ -31,7 +31,7 @@ var start = document.getElementById('start');
var test = document.getElementById('test');
// Select from the #start backwards to the start of the line.
-window.getSelection().setBaseAndExtent(document.getElementById('start'));
+window.getSelection().collapse(document.getElementById('start'));
window.getSelection().modify('extend', 'backward', 'lineBoundary')
// Replace the selection with a break. This replaces #before, text,

Powered by Google App Engine
This is Rietveld 408576698