Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / selection / move-by-sentence-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     moveSelectionForwardByLineCommand();    
22     moveSelectionBackwardBySentenceCommand();    
23     moveSelectionForwardByLineCommand();    
24     moveSelectionBackwardBySentenceCommand();    
25     moveSelectionForwardByLineCommand();    
26     moveSelectionBackwardBySentenceCommand();    
27     moveSelectionForwardByLineCommand();    
28     moveSelectionBackwardBySentenceCommand();    
29     moveSelectionForwardByLineCommand();    
30     moveSelectionBackwardBySentenceCommand();    
31     moveSelectionForwardByLineCommand();    
32     moveSelectionBackwardBySentenceCommand();    
33     moveSelectionForwardByLineCommand();    
34     moveSelectionBackwardBySentenceCommand();    
35     moveSelectionForwardByLineCommand();    
36     moveSelectionBackwardBySentenceCommand();    
37 }
38
39 </script>
40
41 <!-- Note that this tests the fix for this bug:
42 <rdar://problem/5174862> Crash resulting from DeprecatedString::insert()
43 -->
44
45 <title>Editing Test</title> 
46 </head> 
47 <body>
48 <div contenteditable id="test" class="editing">
49 &#149; <b>This is some linked text</b>
50
51 <script>
52 runEditingTest();
53 </script>
54
55 </body>
56 </html>