10 border:
2px solid blue;
15 .scenario { margin-bottom:
16px;}
16 .scenario:first-line { font-weight: bold; margin-bottom:
16px;}
17 .expected-results:first-line { font-weight: bold }
19 <script src=../editing.js
language=
"JavaScript" type=
"text/JavaScript" ></script>
23 function editingTest() {
24 extendSelectionForwardByLineCommand();
26 moveSelectionForwardByCharacterCommand();
27 insertParagraphCommand();
29 typeCharacterCommand();
30 moveSelectionBackwardByCharacterCommand();
36 <title>Editing Test
</title>
40 <div class=
"explanation">
41 <div class=
"scenario">
44 Inserting blocks for paragraphs should do a better job of finding a block to insert after.
45 <a href=
"rdar://problem/3996605"><rdar://problem/
3996605></a> Insert paragraph command puts new block in wrong place, creating difficult-to-handle HTML
47 <div class=
"expected-results">
50 Should see this content in the red box below:
<b>fo
</b>x
54 <div contenteditable
id=
"root" style=
"word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
55 <div id=
"test" class=
"editing">