Change log level: info -> debug
[framework/web/webkit-efl.git] / LayoutTests / editing / pasteboard / emacs-ctrl-a-k-y.html
1 <html>
2 <head>
3 <style>
4 .editing { 
5     border: 2px solid red; 
6     font-size: 24px; 
7 }
8 .explanation { 
9     border: 2px solid blue; 
10     padding: 12px; 
11     font-size: 24px; 
12     margin-bottom: 24px;
13 }
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>
18
19 <script src='../editing.js'></script>
20
21 <script>
22 function editingTest()
23 {
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"
29     }
30     moveSelectionForwardByWordCommand(); // cursor after "one"
31     if (window.eventSender)
32         eventSender.keyDown("y", ["ctrlKey"]);
33 }
34 </script>
35 <title>Editing Test for ctrl-a, ctrl-k, ctrl-y</title>
36 </head>
37 <body>
38
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>
48
49 <BR>
50 one two three four five
51 </div>
52 </div>
53
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>
57
58 <script>
59 runEditingTest();
60 </script>
61
62 </body>
63 </html>