Reviewed by Hyatt
[WebKit-https.git] / LayoutTests / editing / inserting / insert-div-021.html
1 <html> 
2 <head>
3
4 <style>
5 body {
6     font-size: 24px; 
7 }
8 .editing { 
9     border: 2px solid red; 
10     padding: 12px; 
11 }
12 div {
13     border: 2px solid blue; 
14     padding: 12px; 
15 }
16
17 </style>
18 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
19
20 <script>
21
22 function editingTest() {
23     for (i = 0; i < 4; i++)
24         moveSelectionForwardByCharacterCommand();
25     deleteCommand();
26     insertParagraphCommand();
27     insertParagraphCommand();
28 }
29
30 </script>
31
32 <title>Editing Test</title> 
33 </head> 
34 <body contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
35
36 Test inserting paragraphs: should see "foo", then an empty blue box, then a blue box with with "bar" in it. Fix for this bug:
37 <a href="rdar://problem/3924579">&lt;rdar://problem/3924579&gt;</a> REGRESSION (Mail): After deleting, hitting return key does not insert visible newline
38
39
40 <div style="border: none; height: 12px"></div>
41
42 <span id="test">foo</span><br>bar
43
44 <script>
45 runEditingTest();
46 </script>
47
48 </body>
49 </html>