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
< 8; i
++)
25 moveSelectionForwardByCharacterCommand();
26 for (i
= 0; i
< 2; i
++)
27 extendSelectionForwardByCharacterCommand();
34 <title>Editing Test
</title>
38 <div class=
"explanation">
39 <div class=
"scenario">
43 <a href=
"rdar://problem/4045513"><rdar://problem/
4045513></a> Copying and pasting selection starting at end of paragraph can incorrectly remove line break
45 <div class=
"expected-results">
48 Should see two lines of text below, self-documenting themselves as
"line one" and
"line two". The insertion point must
49 be after the first character (
"l") of
"line two".
53 <div contenteditable
id=
"root" style=
"word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
54 <div id=
"test" class=
"editing">