Reviewed by me
[WebKit-https.git] / LayoutTests / editing / selection / move-by-word-001.html
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 < 6; i++)
22         moveSelectionForwardByWordCommand();    
23     extendSelectionBackwardByWordCommand();    
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</div>bar
33 </div>
34
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 -->
39
40 <script>
41 runEditingTest();
42 </script>
43
44 </body>
45 </html>