Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / emacs-ctrl-k-y-001.html
blob382746e2f34bacd35b43cb82996b1dbe78c4e3f5
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 "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"]);
36 </script>
37 <title>Editing Test for ctrl-k and ctrl-y</title>
38 </head>
39 <body>
41 <div class="explanation">
42 <div class="scenario">
43 Tests:
44 <br>
45 Multiple ctrl-k presses then a ctrl-y.
46 </div>
47 <div class="expected-results">
48 Expected Results:
49 <br>
51 <div>
52 one two three
53 <div>four five six</div>
54 <div>seven eight nine</div>
55 </div>
57 </div>
58 </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">
62 one two three
63 <div>four five six</div>
64 <div>seven eight nine</div>
65 </div>
66 </div>
68 <script>
69 runEditingTest();
70 </script>
72 </body>
73 </html>