blob: e666f13f3e6068acfec91cd526299a85d6b47029 [file] [log] [blame]
ggarenf38d7c72006-11-03 06:41:47 +00001<script>
rniwa@webkit.org14f6b5b2012-06-13 08:51:53 +00002if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
ggarenf38d7c72006-11-03 06:41:47 +00004</script>
justing54c2e992006-10-23 21:29:49 +00005<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.come4ebde02013-03-28 00:33:25 +00009if (window.internals)
10 internals.settings.setEditingBehavior('mac');
justing54c2e992006-10-23 21:29:49 +000011var sel = window.getSelection();
12var div = document.getElementById("div");
13sel.setPosition(div, 0);
14sel.modify("move", "forward", "character");
15sel.modify("move", "forward", "character");
16sel.modify("move", "forward", "character");
17sel.modify("move", "forward", "character");
18sel.modify("move", "forward", "character");
19document.execCommand("InsertParagraph");
rniwa@webkit.org14f6b5b2012-06-13 08:51:53 +000020</script>