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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/move-by-character-001.html

Issue 1809963002: [Editing][CodeHealth] Use w3c testharness in editing/seletion/move-by-* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 4 years, 9 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/move-by-character-001.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/move-by-character-001.html b/third_party/WebKit/LayoutTests/editing/selection/move-by-character-001.html
deleted file mode 100644
index e5ed85dfe34620bd047bf58be7ad0322b8906d55..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/editing/selection/move-by-character-001.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<!DOCTYPE html>
-<script src="../../resources/testharness.js"></script>
-<script src="../../resources/testharnessreport.js"></script>
-<div contenteditable id="root" class="editing">
-<span id="sample">foo bar baz</span>
-</div>
-<div id="log"></div>
-<script>
-test(function() {
- var selection = window.getSelection();
- var sample = document.getElementById('sample');
- selection.collapse(sample, 0);
- for (i = 0; i < 11; ++i)
- selection.modify('move', 'forward', 'character');
- assert_true(selection.isCollapsed, 'isCollapsed');
- assert_equals(selection.anchorNode, sample.firstChild, 'anchorNode');
- assert_equals(selection.anchorOffset, 16, 'anchorOffset');
-});
-</script>

Powered by Google App Engine
This is Rietveld 408576698