9 border:
2px solid blue;
14 .scenario { margin-bottom:
16px;}
15 .scenario:first-line { font-weight: bold; margin-bottom:
16px;}
16 .expected-results:first-line { font-weight: bold }
19 <script src='../editing.js'
></script>
22 function editingTest()
24 moveSelectionForwardByWordCommand(); // cursor after "one"
25 moveSelectionForwardByWordCommand(); // cursor after "five"
26 if (window
.eventSender
) {
27 eventSender
.keyDown("k", ["ctrlKey"]); // two three four in the kill ring
28 eventSender
.keyDown("a", ["ctrlKey"]); // cursor before "one"
30 moveSelectionForwardByWordCommand(); // cursor after "one"
31 if (window
.eventSender
)
32 eventSender
.keyDown("y", ["ctrlKey"]);
35 <title>Editing Test for ctrl-a, ctrl-k, ctrl-y
</title>
39 <div class=
"explanation">
40 <div class=
"scenario">
43 ctrl-a, ctrl-k, and ctrl-y
45 <div class=
"expected-results">
50 one two three four five
54 <div contenteditable
id=
"root" style=
"word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
55 <div id=
"test" class=
"editing">one five two three four
</div>