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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/modify_extend/extend-by-character-003.html

Issue 2184953002: Convert extend-by-character-[1-6].html to use assert_selection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-28T10:36:48 Adopt to Linux behavior Created 4 years, 5 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/modify_extend/extend-by-character-003.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/modify_extend/extend-by-character-003.html b/third_party/WebKit/LayoutTests/editing/selection/modify_extend/extend-by-character-003.html
deleted file mode 100644
index 9307ac0d0d6312bb93347cf54e3bc76d608db60e..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/editing/selection/modify_extend/extend-by-character-003.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html>
-<script src="../../../resources/testharness.js"></script>
-<script src="../../../resources/testharnessreport.js"></script>
-<body>
-<div contenteditable id="root" class="editing">
-<span id="span"><i>F and seven</i> years <b> as </b>our fathers f upon this
-continent, a new nation, conceived &nbsp;&nbsp; in Liberty, and dedicated to the
-proposition that all
-<br>men are created equal.</span>
-</div>
-<div id="log"></div>
-<script>
-test(function () {
- var selection = getSelection();
- selection.collapse(span.firstChild.firstChild, 0);
- selection.modify("move", "forward", "character");
- selection.modify("move", "forward", "character");
- for (i = 0; i < 157; i++) {
- selection.modify("extend", "forward", "character");
- }
- assert_equals(selection.anchorNode, span.firstChild.firstChild);
- assert_equals(selection.anchorOffset, 5);
- assert_equals(selection.focusNode, span.childNodes[5]);
- assert_equals(selection.focusOffset, 21);
-});
-</script>
-
-</body>

Powered by Google App Engine
This is Rietveld 408576698