Unreviewed, fix build failure
[WebKit-https.git] / ManualTests / autocorrection / select-from-multiple-guesses.html
1 <html>
2 <head>
3
4 <style>
5 .editing {
6     border: 2px solid red;
7     padding: 12px;
8     font-size: 24px;
9 }
10 </style>
11 <script src="../../LayoutTests/editing/editing.js"></script>
12
13 <script>
14 function editingTest() {
15     typeCharacterCommand('t');
16     typeCharacterCommand('h');
17     typeCharacterCommand('e');
18     typeCharacterCommand(' ');
19     typeCharacterCommand('m');
20     typeCharacterCommand('e');
21     typeCharacterCommand('s');
22     typeCharacterCommand('a');
23     typeCharacterCommand('e');
24     typeCharacterCommand('g');
25     typeCharacterCommand('e');
26     typeCharacterCommand('e');
27     typeCharacterCommand(' ');
28     execMoveSelectionBackwardByCharacterCommand();
29 }
30
31 </script>
32
33 <title>Select From Multiple Guesses Test</title>
34 </head>
35 <body>
36 <div><p>This test verifies that multiple guesses on mispelled word is working correctly</p>
37 <p>After seeing the panel with multiple candidates, use down arrow key to select the first candidate, and then use left and/or right arrow key to select the desired candidate, and then use return key to confirm. You can also use this test to test that pressing ESC key will dismiss the panel.</p>
38 <p  style="color:green">Note, this test can fail due to user specific spell checking data. To fix this, remove all files in ~/Library/Spelling, then kill AppleSpell.service process.</p>
39 <div contenteditable id="root" class="editing">
40 <span id="test"></span>
41 </div>
42
43
44 <script>
45 runEditingTest();
46 </script>
47
48 </body>
49 </html>