Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / paste-into-table-cell-2.html
blobee6c74197c240fe4958759fb417533e7f6934718
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p>This tests pasting into a table cell.
5 To manually run the test, copy some text and paste it after "1".
6 The content should be pasted into the first cell, not the second cell.</p>
7 <div id="result"><table border="1"><tbody><tr><td id="firstCell">1</td><td>3</td></tr></tbody></table></div>
8 <script src="../../resources/dump-as-markup.js"></script>
9 <script>
10 Markup.description(document.querySelector('p').textContent);
12 document.designMode = 'on';
14 var firstCell = document.getElementById('firstCell');
15 window.getSelection().collapse(firstCell, 1);
16 document.execCommand("insertHTML", false, "<div>&nbsp;2</div>");
18 Markup.dump('result')
19 </script>
20 </body>
21 </html>