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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/extend-by-word-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 <html>
2 <head>
3
4 <style>
5 .editing {
6 border: 2px solid red;
7 padding: 12px;
8 font-size: 24px;
9 }
10 .cell {
11 padding: 12px;
12 font-size: 24px;
13 height: 48px;
14 }
15 </style>
16 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script >
17
18 <script>
19
20 function editingTest() {
21 for (i = 0; i < 4; i++)
22 moveSelectionForwardByCharacterCommand();
23 extendSelectionForwardByWordCommand();
24 }
25
26 </script>
27
28 <title>Editing Test</title>
29 </head>
30 <body>
31 <div contenteditable id="root" class="editing">
32 <div id="test">foo<span class="Apple-tab-span" style="white-space:pre"> </span>b ar</div>
33 </div>
34
35 <!--
36 Specifically checks test case in bug:
37 <rdar://problem/3917929> REGRESSION (Mail): Command-left-arrow leaves insert ion point too high after specific steps
38 -->
39
40 <script>
41 runEditingTest();
42 </script>
43
44 </body>
45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698