ggaren | f38d7c7 | 2006-11-03 06:41:47 +0000 | [diff] [blame] | 1 | <script> |
rniwa@webkit.org | 14f6b5b | 2012-06-13 08:51:53 +0000 | [diff] [blame] | 2 | if (window.testRunner) |
| 3 | testRunner.dumpEditingCallbacks(); |
ggaren | f38d7c7 | 2006-11-03 06:41:47 +0000 | [diff] [blame] | 4 | </script> |
justing | 54c2e99 | 2006-10-23 21:29:49 +0000 | [diff] [blame] | 5 | <p>This tests inserting a paragraph separator after a table. There should be an empty paragraph between the table and 'bar' and the caret should be in the empty paragraph.</p> |
| 6 | <div contenteditable="true" id="div"><table border="1"><tr><td>foo</td></tr></table>bar</div> |
| 7 | |
| 8 | <script> |
csaavedra@igalia.com | e4ebde0 | 2013-03-28 00:33:25 +0000 | [diff] [blame] | 9 | if (window.internals) |
| 10 | internals.settings.setEditingBehavior('mac'); |
justing | 54c2e99 | 2006-10-23 21:29:49 +0000 | [diff] [blame] | 11 | var sel = window.getSelection(); |
| 12 | var div = document.getElementById("div"); |
| 13 | sel.setPosition(div, 0); |
| 14 | sel.modify("move", "forward", "character"); |
| 15 | sel.modify("move", "forward", "character"); |
| 16 | sel.modify("move", "forward", "character"); |
| 17 | sel.modify("move", "forward", "character"); |
| 18 | sel.modify("move", "forward", "character"); |
| 19 | document.execCommand("InsertParagraph"); |
rniwa@webkit.org | 14f6b5b | 2012-06-13 08:51:53 +0000 | [diff] [blame] | 20 | </script> |