Unreviewed, fix build failure
[WebKit-https.git] / ManualTests / autocorrection / type-whitespace-to-dismiss-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>Type Whitespace to Dismiss Reversion Panel Test</title>
36 </head>
37 <body>
38 <div><p>This test verifies that, after reversion panel is shown, typing whitespace will dismiss the reversion panel.</p>
39 <p>After seeing the reversion panel, type whitespace. You should see the panel being dismissed once you start typing.</p>
40 <p  style="color:green">Note, this test can fail due to user specific spell checking data. If the user has previously 
41 frequently revert 'message' to 'mesage'. To fix this, remove all files in ~/Library/Spelling, then kill AppleSpell.service process.</p>
42 <div contenteditable id="root" class="editing">
43 <span id="test"></span>
44 </div>
45
46
47 <script>
48 runEditingTest();
49 </script>
50
51 </body>
52 </html>