| <!DOCTYPE html> |
| <html> |
| <head> |
| <script src="AutoCorrectTests.js"></script> |
| <script> |
| function performTest() |
| { |
| Outline_init(); |
| AutoCorrect_init(); |
| PostponedActions_perform(); |
| |
| Cursor_insertCharacter("one"); |
| Cursor_insertCharacter(" twox"); |
| AutoCorrect_correctPrecedingWord(4,"two"); |
| Cursor_insertCharacter(" three"); |
| Cursor_insertCharacter(" fourx"); |
| AutoCorrect_correctPrecedingWord(5,"four"); |
| Cursor_insertCharacter(" five"); |
| Cursor_insertCharacter(" sixx"); |
| AutoCorrect_correctPrecedingWord(4,"six"); |
| Cursor_insertCharacter(" seven"); |
| PostponedActions_perform(); |
| showSelection(); |
| |
| var text = findTextMatching("four"); |
| Selection_set(text,0,text,0); |
| |
| AutoCorrect_replaceCorrection("A"); |
| PostponedActions_perform(); |
| |
| return showCorrections(); |
| } |
| </script> |
| </head> |
| <body> |
| <p>[]</p> |
| </body> |
| </html> |