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 moveSelectionForwardByLineCommand();
25 moveSelectionForwardByLineCommand();
26 moveSelectionForwardByLineCommand();
27 extendSelectionForwardByLineCommand();
28 for (i
= 0; i
< 2; i
++)
29 extendSelectionForwardByCharacterCommand();
35 <title>Editing Test
</title>
39 <div class=
"explanation">
40 <div class=
"scenario">
43 Deleting when a selection starts at the beginning of a text following a nested block, and extends out of the enclosing block into the following block.
45 FIXME: Currently broken! See rdar://problem/
4099839/.
47 <div class=
"expected-results">
50 Should see a total of five lines in the red box, with the third line inside of a nested red box. First line should be
"one". Next line should be
"two". Next line should be
"cha cha cha", inside of a nested red box. Next line should be
"ur". The last line should be
"cha cha cha". Insertion point should be blinking at the start of the fourth line (
"ur").
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">
58 <div class=
"editing"><div>cha cha cha
</div>three
</div>
59 <div>four
</div><div>cha cha cha
</div>