11 <script src=../../../../LayoutTests/editing/editing.js language="JavaScript" type="text/JavaScript" ></script>
14 function editingTest() {
15 typeCharacterCommand('t');
16 typeCharacterCommand('h');
17 typeCharacterCommand('e');
18 typeCharacterCommand(' ');
19 typeCharacterCommand('c');
20 typeCharacterCommand('y');
21 typeCharacterCommand('l');
22 typeCharacterCommand('i');
23 typeCharacterCommand('n');
24 typeCharacterCommand('d');
25 typeCharacterCommand('r');
30 <title>Spellchecking After Reversion Test</title>
33 <div><p>This test verifies the behavior of spellchecking after reversion.</p>
35 <li>After seeing the correction panel, press space to accept the correction.</li>
36 <li>Press delete key to bring up reversion bubble.</li>
37 <li>Press down arrow followed by return key to accept the reversion suggestion.</li>
38 <li>Press space key again, and verify that the word "cylindr" IS NOT marked as misspelled.</li>
39 <li>Press delete key twice.</li>
40 <li>Press space key again, and verify that the word "cylind" IS marked as misspelled.</li>
42 <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>
43 <div contenteditable id="root" class="editing">
44 <span id="test"></span>