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>
20 <title>Editing Test
</title>
23 <div class=
"explanation">
24 <div class=
"scenario">
27 Option-delete when no typing command is open, then undo.
29 <div class=
"expected-results">
32 It should like this, with the word
"two" selected:
37 <div contenteditable
id=
"root" style=
"word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
38 <div id=
"test" class=
"editing">one two three four
</div>
41 function sendDeleteWordKey()
43 var deleteWordModifiers
;
44 if (navigator
.userAgent
.search(/\bMac OS X\b/) != -1)
45 deleteWordModifiers
= ["altKey"];
47 deleteWordModifiers
= ["ctrlKey"];
48 if (window
.eventSender
)
49 eventSender
.keyDown("backspace", deleteWordModifiers
);
50 debugForDumpAsText("DeleteWord");
53 function editingTest()
55 moveSelectionForwardByWordCommand();
56 moveSelectionForwardByWordCommand();
61 runDumpAsTextEditingTest(true);