10 <script src=
"../editing.js"></script>
11 <script src=
"../../resources/dump-as-markup.js"></script>
12 <title>Editing Test
</title>
14 <body contenteditable
id=
"root">
15 <div class=
"editing" id=
"test">There is a tide in the affairs of men.
</div>
18 window
.getSelection().collapse(document
.getElementById('test'), 0);
20 for (i
= 0; i
< 31; i
++)
21 moveSelectionForwardByCharacterCommand();
22 for (i
= 0; i
< 7; i
++)
23 extendSelectionForwardByCharacterCommand();
26 moveSelectionForwardByCharacterCommand();
27 insertLineBreakCommand();
28 insertLineBreakCommand();
32 Markup
.description('There was a bug when pasting at the end of the block. The content was inserted at the start\n'
33 + 'the block instead of the end. This tests the insert-at-end case.');
34 var script
= document
.getElementsByTagName('script')[2];
35 script
.parentNode
.removeChild(script
);