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