Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / ManualTests / autocorrection / autocorrection-contraction.html
blobca40d62393075f7584bcfd60380ea79f2c27cfa0
1 <html>
2 <head>
4 <style>
5 .editing {
6 border: 2px solid red;
7 padding: 12px;
8 font-size: 24px;
10 </style>
11 <script src=../../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
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');
28 </script>
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>
40 <script>
41 runEditingTest();
42 </script>
44 </body>
45 </html>