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 "two"
26 if (window.eventSender) {
27 eventSender.clearKillRing();
28 eventSender.keyDown("k", ["ctrlKey"]); // two three in the kill ring
29 eventSender.keyDown("k", ["ctrlKey"]); // newline added to killring
30 eventSender.keyDown("k", ["ctrlKey"]); // four five six added to kill ring
31 eventSender.keyDown("k", ["ctrlKey"]); // newline added to killring
32 eventSender.keyDown("k", ["ctrlKey"]); // seven eight nine added to kill ring
33 eventSender.keyDown("y", ["ctrlKey"]);
37 <title>Editing Test for ctrl-k and ctrl-y</title>
41 <div class="explanation">
42 <div class="scenario">
45 Multiple ctrl-k presses then a ctrl-y.
47 <div class="expected-results">
53 <div>four five six</div>
54 <div>seven eight nine</div>
60 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
61 <div id="test" class="editing">
63 <div>four five six</div>
64 <div>seven eight nine</div>