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('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 ESC Test</title> 31 </head> 32 <body> 33 <div><p>This test verifies that autocorrection is not applied when user dismisses correction panel by pressing 34 ESC key.</p> 35 <p>After seeing the correction panel, press ESC key, then press space. You should see the phrase "the collaps" 36 where "collaps" has red mispell underline. </p> 37 <p style="color:green">Note, this test can fail due to user specific spell checking data. If the user has previously 38 dismissed 'collapse' as the correct spelling of 'collaps' several times, the spell checker will not provide 39 'collapse' as a suggestion anymore. To fix this, remove all files in ~/Library/Spelling.</p> 40 <div contenteditable id="root" class="editing"> 41 <span id="test"></span> 42 </div> 43 44 45 <script> 46 runEditingTest(); 47 </script> 48 49 </body> 50 </html> 51