Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / move-by-word-001.html
blob49348fc4d5fc716e3e78545233cc4168c8ac6180
1 <html>
2 <head>
4 <style>
5 .editing {
6 border: 2px solid red;
7 padding: 12px;
8 font-size: 24px;
10 .cell {
11 padding: 12px;
12 font-size: 24px;
13 height: 48px;
15 </style>
16 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
18 <script>
20 function editingTest() {
21 for (i = 0; i < 6; i++)
22 moveSelectionForwardByWordCommand();
23 extendSelectionBackwardByWordCommand();
26 </script>
28 <title>Editing Test</title>
29 </head>
30 <body>
31 <div contenteditable id="root" class="editing">
32 <div id="test">foo</div>bar
33 </div>
35 <!--
36 Specifically checks test case in bug:
37 <rdar://problem/3917929> REGRESSION (Mail): Command-left-arrow leaves insertion point too high after specific steps
38 -->
40 <script>
41 runEditingTest();
42 </script>
44 </body>
45 </html>