Unreviewed, fix build failure
[WebKit-https.git] / ManualTests / autocorrection / autocorrection-cancelled-by-typing-1.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('c');
20     typeCharacterCommand('o');
21     typeCharacterCommand('l');
22     typeCharacterCommand('l');
23     typeCharacterCommand('a');
24     typeCharacterCommand('p');
25     typeCharacterCommand('s');
26 }
27
28 </script>
29
30 <title>Autocorrection Cancellation By Typing Test</title>
31 </head>
32 <body>
33 <div>This test verifies that autocorrection behaves correctly when continuing typing in a word on which autocorrection panel is hown. You should see correction panel showing 'collapse' after 'collaps' is entered. Then type "ing". Phrase 'the collapsing' should be shown without underline.</div>
34 <p  style="color:green">Note, this test can fail due to user specific spell checking data. If the user has previously dismissed 'collapse' as the correct spelling of 'collaps' several times, the spell checker will not provide 'collapse' as a suggestion anymore. To fix this, remove all files in ~/Library/Spelling.</p>
35 <div contenteditable id="root" class="editing">
36 <span id="test"></span>
37 </div>
38
39
40 <script>
41 runEditingTest();
42 </script>
43
44 </body>
45 </html>