initial import
[vuplus_webkit] / Source / WebCore / manual-tests / autocorrection / autocorrection-contraction.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('i');
18     typeCharacterCommand('s');
19     typeCharacterCommand(' ');
20     typeCharacterCommand('w');
21     typeCharacterCommand('o');
22     typeCharacterCommand('u');
23     typeCharacterCommand('l');
24     typeCharacterCommand('d');
25     typeCharacterCommand('n');
26 }
27
28 </script>
29
30 <title>Autocorrection with Contraction Test</title>
31 </head>
32 <body>
33 <div><p>This test verifies that, after typing an apostrophe, if the current word is part of a contraction, previously shown autocorrection will not be applied.</p>
34 <p>After loading the page, you should see correction panel shows "would" for "wouldn". Then after typing "'t", the correction panel dissappears and the final sentence is "this wouldn't".</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>