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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/modify_extend/extend-by-character-001.html

Issue 1798413003: [Editing][CodeHealth] Use w3c testharness in editing/seletion/extend-by-* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script>
4 <body>
5 <div contenteditable id="root" class="editing">
6 <span id="span">f oo bar baz</span>
7 </div>
8 <div id="log"></div>
9 <script>
10 test(function () {
11 var selection = getSelection();
12 selection.collapse(span.firstChild, 0);
13 selection.modify("move", "forward", "character");
14 selection.modify("move", "forward", "character");
15 for (i = 0; i < 7; i++) {
16 selection.modify("extend", "forward", "character");
17 }
18 assert_equals(selection.toString(), "oo bar ");
19 });
20 </script>
21
22 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698