Reviewed by Hyatt
[WebKit-https.git] / LayoutTests / editing / inserting / insert-div-020.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 < 5; i++)
24         moveSelectionForwardByCharacterCommand();
25     insertParagraphCommand();
26 }
27
28 </script>
29
30 <title>Editing Test</title> 
31 </head> 
32 <body contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
33
34 Test inserting paragraphs: should see a blue box with "bar" in it, and two blank lines between "foo" and "bar".
35
36 <div style="border: none; height: 12px"></div>
37
38 <span id="test">foo</span><br><br>bar
39
40 <script>
41 runEditingTest();
42 </script>
43
44 </body>
45 </html>