Reviewed by John
[WebKit-https.git] / LayoutTests / editing / deleting / delete-3959464-fix.html
1 <html> 
2 <head>
3
4 <style>
5 .editing { 
6     border: 2px solid red; 
7     padding: 12px; 
8     font-size: 24px; 
9 }
10 .explanation { 
11     border: 2px solid blue; 
12     padding: 12px; 
13     font-size: 24px; 
14     margin-bottom: 24px;
15 }
16 </style>
17 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
18
19 <script>
20
21 function editingTest() {
22     for (i = 0; i < 4; i++)
23         moveSelectionForwardByCharacterCommand();
24     for (i = 0; i < 3; i++)
25         insertParagraphCommand();
26     typeCharacterCommand();
27     extendSelectionBackwardByLineCommand();
28     deleteCommand();
29 }
30
31 </script>
32
33 <title>Editing Test</title> 
34 </head> 
35 <body>
36 <div class="explanation">
37 Should see "foo" and "bar" each in a separate red box. Note that the "foo" text is really "foo ". 
38 There <b>must</b> be a space at the end of the line.
39 </div>
40
41 <div contenteditable="true" id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
42 <div id="test" class="editing">foo</div>
43 </div>
44
45 <script>
46 runEditingTest();
47 </script>
48
49 </body>
50 </html>