| <script src="../../LayoutTests/editing/editing.js"></script> |
| typeCharacterCommand('t'); |
| typeCharacterCommand('h'); |
| typeCharacterCommand('e'); |
| typeCharacterCommand(' '); |
| typeCharacterCommand('c'); |
| typeCharacterCommand('y'); |
| typeCharacterCommand('l'); |
| typeCharacterCommand('i'); |
| typeCharacterCommand('n'); |
| typeCharacterCommand('d'); |
| typeCharacterCommand('r'); |
| <title>Spellchecking After Reversion Test</title> |
| <div><p>This test verifies the behavior of spellchecking after reversion.</p> |
| <li>After seeing the correction panel, press space to accept the correction.</li> |
| <li>Press delete key to bring up reversion bubble.</li> |
| <li>Press down arrow followed by return key to accept the reversion suggestion.</li> |
| <li>Press space key again, and verify that the word "cylindr" IS NOT marked as misspelled.</li> |
| <li>Press delete key twice.</li> |
| <li>Press space key again, and verify that the word "cylind" IS marked as misspelled.</li> |
| <p style="color:green">Note, this test can fail due to user specific spell checking data. To fix this, remove all files in ~/Library/Spelling.</p> |
| <div contenteditable id="root" class="editing"> |