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 moveSelectionForwardByWordCommand();
25 moveSelectionForwardByCharacterCommand();
26 extendSelectionForwardByWordCommand();
32 <title>Editing Test
</title>
36 <div class=
"explanation">
37 <div class=
"scenario">
40 Smart delete when deleting the second word of a line.
42 <div class=
"expected-results">
45 The second word and the space before the second word should be deleted. It should like this this:
51 <div contenteditable
id=
"root" style=
"word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
52 <div id=
"test" class=
"editing">