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 sendDeleteWordKey()
25 var deleteWordModifiers
;
26 if (navigator
.userAgent
.search(/\bMac OS X\b/) != -1)
27 deleteWordModifiers
= ["altKey"];
29 deleteWordModifiers
= ["ctrlKey"];
30 if (window
.eventSender
)
31 eventSender
.keyDown(String
.fromCharCode(8), deleteWordModifiers
);
34 function editingTest()
36 moveSelectionForwardByWordCommand();
37 moveSelectionForwardByWordCommand();
44 <title>Editing Test
</title>
48 <div class=
"explanation">
49 <div class=
"scenario">
52 Option-delete when no typing command is open, then undo.
54 <div class=
"expected-results">
57 It should like this, with the word
"two" selected:
63 <div contenteditable
id=
"root" style=
"word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
64 <div id=
"test" class=
"editing">one two three four
</div>