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 for (i
= 0; i
< 3; i
++)
25 moveSelectionForwardByCharacterCommand();
26 extendSelectionForwardByCharacterCommand();
33 <title>Editing Test
</title>
37 <div class=
"explanation">
38 <div class=
"scenario">
41 Bug fix for
<a href=
"rdar://problem/4038267"><rdar://problem/
4038267></a> REGRESSION (Mail): Crash copying and pasting end of paragraph.
43 <div class=
"expected-results">
46 Should see this content in the red box below (insertion point must be on the second line, right before
"bar"):
<div>foo
</div><div>bar
</div>
50 <div contenteditable
id=
"root" style=
"word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
51 <div id=
"test" class=
"editing">
52 <div>foo
</div><div>bar
</div>