Reviewed by John
[WebKit-https.git] / LayoutTests / editing / pasteboard / paste-text-015.html
1 <html> 
2 <head>
3
4 <style>
5 .editing { 
6     border: 2px solid red; 
7     padding: 12px; 
8     font-size: 24px; 
9 }
10 p {
11     margin: 0;
12 }
13 </style>
14 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
15
16 <script>
17
18 function editingTest() {
19     for (i = 0; i < 7; i++)
20         extendSelectionForwardByCharacterCommand();
21     copyCommand();
22     selectAllCommand();
23     deleteCommand();
24     pasteCommand();
25     insertParagraphCommand();
26     pasteCommand();
27 }
28
29 </script>
30
31 <title>Editing Test</title> 
32 </head> 
33 <body contenteditable>
34 <div id="root">
35 <div id="test" class="editing"><p>foo</p><p>bar</p></div>
36 </div>
37  
38 <script>
39 runEditingTest();
40 </script>
41
42 </body>
43 </html>