2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / editing / input / emacs-ctrl-o.html
blobb0b785158c5ae1e4538938b175c175333408702f
1 <html>
3 <head>
5 <style>
6 body { font-size: 24px }
7 .explanation {
8 margin-bottom: 24px;
10 .scenario { margin-bottom: 16px }
11 .scenario:first-line { font-weight: bold }
12 .expected-results:first-line { font-weight: bold }
13 </style>
15 <script src='../editing.js'></script>
17 <script>
18 function editingTest()
20 moveSelectionForwardByWordCommand(); // cursor after "one"
21 moveSelectionForwardByWordCommand(); // cursor after "five"
22 moveSelectionForwardByCharacterCommand();
23 if (window.eventSender)
24 eventSender.keyDown("o", ["ctrlKey"]);
26 </script>
28 <title>Editing Test for Control-O</title>
30 </head>
32 <body onload="runEditingTest()">
34 <div class="explanation">
35 <div class="scenario">Tests:<br>Key binding for control-O</div>
36 <div class="expected-results">Expected results:<br>one five |<br>two three four</div>
37 </div>
39 <div contenteditable id="root" class="editing">
40 <div id="test">one five two three four</div>
41 </div>
43 </body>
45 </html>