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 var target
= document
.getElementById('test');
25 var x
= target
.offsetLeft
;
26 var y
= target
.offsetTop
+ target
.offsetHeight
/ 2;
29 typeCharacterCommand('.');
30 typeCharacterCommand('.');
31 moveSelectionBackwardByCharacterCommand();
37 <title>Editing Test
</title>
41 <div class=
"explanation">
42 <div class=
"scenario">
45 Smart paste when pasting between two periods.
47 <div class=
"expected-results">
50 A space should be added before, but not after the pasted word. It should look like this:
56 <div contenteditable
id=
"root" style=
"word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
57 <div id=
"test" class=
"editing">