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

Unified Diff: LayoutTests/editing/execCommand/overtype.html

Issue 236693002: Replace Selection.collapse() with Selection.removeAllRanges() in layout tests.. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | LayoutTests/fast/html/nav-element.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/execCommand/overtype.html
diff --git a/LayoutTests/editing/execCommand/overtype.html b/LayoutTests/editing/execCommand/overtype.html
index 50431408afc61ea92d8e3d74282c49c0203f25c4..ed3de558afe4f7fd8fc2e34c9afb38f7d037c666 100644
--- a/LayoutTests/editing/execCommand/overtype.html
+++ b/LayoutTests/editing/execCommand/overtype.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
@@ -63,7 +63,7 @@ else {
Markup.dump(element, 'Overwrite behaves like insert on range selections');
element.innerHTML = "&#x4E20;&#x4E21;&#x4E22;&#x4E23;";
- selection.collapse();
+ selection.removeAllRanges();
Markup.dump(element, 'New CJK contents');
selection.collapse(element, 0);
@@ -71,7 +71,7 @@ else {
Markup.dump(element, 'Overwrite CJK text');
element.innerHTML="<div id=\"rtl-div\" dir=\"rtl\">&aleph;&beth;&gimel;&daleth;</div>"
- selection.collapse();
+ selection.removeAllRanges();
Markup.dump(element, 'New RTL contents');
selection.collapse(element, 0);
« no previous file with comments | « no previous file | LayoutTests/fast/html/nav-element.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698