Unreviewed, fix build failure
[WebKit-https.git] / ManualTests / autocorrection / move-to-end-of-word-to-show-reversion.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('g');
24     typeCharacterCommand('e');
25     setTimeout(function () {
26         typeCharacterCommand(' ');
27             setTimeout(function () {
28                 execMoveSelectionBackwardByCharacterCommand();
29             }, 100);
30     }, 100);
31 }
32
33 </script>
34
35 <title>Move to End of Word to Show Reversion Panel Test</title>
36 </head>
37 <body>
38 <div><p>This test verifies that reversion panel is shown when user moves carret to previously corrected word</p>
39 <p>After seeing the reversion panel, press down key followed by return key. You should see the phrase "the mesage". </p>
40 <p  style="color:green">Note, this test can fail due to user specific spell checking data. If the user has previously frequently revert 'message' to 'mesage'. To fix this, remove all files in ~/Library/Spelling, then kill AppleSpell.service process.</p>
41 <div contenteditable id="root" class="editing">
42 <span id="test"></span>
43 </div>
44
45
46 <script>
47 runEditingTest();
48 </script>
49
50 </body>
51 </html>