9 border:
2px solid blue;
14 .scenario { margin-bottom:
16px;}
15 .scenario:first-line { font-weight: bold; margin-bottom:
16px;}
16 .expected-results:first-line { font-weight: bold }
18 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript" ></script>
22 internals
.settings
.setEditingBehavior('mac');
24 function editingTest() {
25 moveSelectionForwardByLineCommand();
27 typeCharacterCommand(' ');
28 typeCharacterCommand('f');
29 typeCharacterCommand('o');
30 typeCharacterCommand('u');
31 typeCharacterCommand('r');
32 moveSelectionBackwardByLineCommand();
33 extendSelectionForwardByWordCommand();
35 moveSelectionForwardByWordCommand();
36 moveSelectionForwardByWordCommand();
37 moveSelectionForwardByWordCommand();
43 <title>Editing Test
</title>
47 <div class=
"explanation">
48 <div class=
"scenario">
51 Pasting at style boundary does not crash or produce empty style span(s).
53 <div class=
"expected-results">
56 Should see this content in the red box below:
57 <br><div>one two three
<b>four
</b>one
</div>
61 <div contenteditable
id=
"root">
62 <div id=
"test" class=
"editing">one two three
</div>