029aebada64ee1f1c494985aa861bbd277984909
[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 p {
13     border: 2px solid blue; 
14     padding: 12px; 
15 }
16 br {
17     background-color: green; 
18 }
19
20 </style>
21 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
22
23 <script>
24
25 function editingTest() {
26     for (i = 0; i < 5; i++)
27         moveSelectionForwardByCharacterCommand();
28     insertParagraphCommand();
29 }
30
31 </script>
32
33 <title>Editing Test</title> 
34 </head> 
35 <body contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
36
37 Test inserting paragraphs: should see a blue box with "bar" in it, and two blank lines between "foo" and "bar".
38
39 <div style="height: 12px"></div>
40
41 <span id="test">foo</span><br><br>bar
42
43 <script>
44 runEditingTest();
45 </script>
46
47 </body>
48 </html>