4 <div contenteditable
id=
"root" class=
"editing">
5 <span id=
"test">foo bar baz
</span>
7 <script src=
"../editing.js"></script>
8 <script src=
"../../resources/dump-as-markup.js"></script>
11 var test
= document
.getElementById('test');
13 window
.getSelection().collapse(root
, 0);
15 if (window
.testRunner
)
16 testRunner
.dumpEditingCallbacks();
18 for (i
= 0; i
< 4; i
++)
19 moveSelectionForwardByCharacterCommand();
20 for (i
= 0; i
< 3; i
++)
21 extendSelectionForwardByCharacterCommand();
23 moveSelectionForwardByCharacterCommand();
26 Markup
.dump('root', 'You should see "foo barbar baz" below');