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 extendSelectionForwardByLineCommand();
32 <title>Editing Test
</title>
36 <div class=
"explanation">
37 <div class=
"scenario">
40 Bug fix for
<a href=
"rdar://problem/3998892"><rdar://problem/
3998892></a> REGRESSION (Mail): bolding a selection
41 from end of line changes unselected text on starting line.
43 <div class=
"expected-results">
46 Should see first line (
"foo") not bold; second line (
"bar") bold.
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">