Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / emacs-ctrl-a-k-y.html
blob19c9c4049e7a18be566145185894f879bdc30ca6
1 <html>
2 <head>
3 <style>
4 .editing {
5 border: 2px solid red;
6 font-size: 24px;
8 .explanation {
9 border: 2px solid blue;
10 padding: 12px;
11 font-size: 24px;
12 margin-bottom: 24px;
14 .scenario { margin-bottom: 16px;}
15 .scenario:first-line { font-weight: bold; margin-bottom: 16px;}
16 .expected-results:first-line { font-weight: bold }
17 </style>
19 <script src='../editing.js'></script>
21 <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"]);
34 </script>
35 <title>Editing Test for ctrl-a, ctrl-k, ctrl-y</title>
36 </head>
37 <body>
39 <div class="explanation">
40 <div class="scenario">
41 Tests:
42 <br>
43 ctrl-a, ctrl-k, and ctrl-y
44 </div>
45 <div class="expected-results">
46 Expected Results:
47 <br>
49 <BR>
50 one two three four five
51 </div>
52 </div>
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>
56 </div>
58 <script>
59 runEditingTest();
60 </script>
62 </body>
63 </html>