Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / paste-table-001.html
blobca85febe9f63882e05e0db6c3f4e75f2562966e9
1 <html>
2 <head>
3 <style>
4 .editing {
5 border: 2px solid red;
6 padding: 12px;
7 font-size: 24px;
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>
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');
43 runDumpAsTextEditingTest(true);
45 </script>
46 </body>
47 </html>