blob: 6e724b778bad622d1e0d28cdadc7dd0b44f4c86a [file] [log] [blame]
<!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("six");
Selection_set(text,0,text,0);
AutoCorrect_acceptCorrection();
PostponedActions_perform();
return showCorrections();
}
</script>
</head>
<body>
<p>[]</p>
</body>
</html>