| .scenario { margin-bottom: 16px;} |
| .scenario:first-line { font-weight: bold; margin-bottom: 16px;} |
| .expected-results:first-line { font-weight: bold } |
| <script src='../editing.js'></script> |
| moveSelectionForwardByWordCommand(); // cursor after "one" |
| moveSelectionForwardByWordCommand(); // cursor after "five" |
| if (window.eventSender) { |
| eventSender.keyDown("k", ["ctrlKey"]); // two three four in the kill ring |
| eventSender.keyDown("a", ["ctrlKey"]); // cursor before "one" |
| moveSelectionForwardByWordCommand(); // cursor after "one" |
| eventSender.keyDown("y", ["ctrlKey"]); |
| <title>Editing Test for ctrl-a, ctrl-k, ctrl-y</title> |
| <div class="explanation"> |
| ctrl-a, ctrl-k, and ctrl-y |
| <div class="expected-results"> |
| <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;"> |
| <div id="test" class="editing">one five two three four</div> |
| runEditingTestWithCallbackLogging(false); |