Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / pasteboard / paste-into-table-cell-2.html
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);
11
12 document.designMode = 'on';
13
14 var firstCell = document.getElementById('firstCell');
15 window.getSelection().collapse(firstCell, 1);
16 document.execCommand("insertHTML", false, "<div>&nbsp;2</div>");
17
18 Markup.dump('result')
19 </script>
20 </body>
21 </html>