80fc4cbc5c9d631697f9f1b73e35805c132f8440
[WebKit-https.git] / LayoutTests / editing / pasteboard / paste-table-001.html
1 <html> 
2 <head>
3
4 <style>
5 .editing { 
6     border: 2px solid red; 
7     padding: 12px; 
8     font-size: 24px; 
9 }
10 </style>
11 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
12
13 <script>
14
15 function editingTest() {
16     moveSelectionForwardByLineCommand();
17     for (i = 0; i < 3; i++)
18         extendSelectionForwardByLineCommand();
19     for (i = 0; i < 32; i++)
20         extendSelectionForwardByCharacterCommand();
21     copyCommand();
22     moveSelectionForwardByLineCommand();
23     pasteCommand();
24 }
25
26 </script>
27
28 <title>Editing Test</title> 
29 </head> 
30 <body>
31 <div contenteditable id="root" class="editing">
32 <span id="test">Empty table cell</span>
33 <p>
34 <table border="2">
35 <tr>
36     <td>Left column</td>
37     <td>Right column</td>
38 </tr>
39 <tr>
40     <td></td>
41     <td>I should be in the right column.</td>
42 </tr>
43 </table>
44 </div>
45
46 <script>
47 runEditingTest();
48 </script>
49
50 </body>
51 </html>