Unreviewed, rolling out r100835.
[WebKit-https.git] / ManualTests / autocorrection / delete-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 language="JavaScript" type="text/JavaScript" ></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     typeCharacterCommand(' ');
26     execDeleteCommand();
27 }
28
29 </script>
30
31 <title>Delete to End of Word to Show Reversion Panel Test</title>
32 </head>
33 <body>
34 <div><p>This test verifies that reversion panel is shown when user moves carret to previously corrected word using delete key.</p>
35 <p>After seeing the reversion panel, press down key followed by return key. You should see the phrase "the mesage". </p>
36 <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>
37 <div contenteditable id="root" class="editing">
38 <span id="test"></span>
39 </div>
40
41
42 <script>
43 runEditingTest();
44 </script>
45
46 </body>
47 </html>