blob: 96e9be0965a8fb1089feb0b15c438ba4e3376c5c [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");
PostponedActions_perform();
showSelection();
AutoCorrect_acceptCorrection();
AutoCorrect_acceptCorrection();
PostponedActions_perform();
return showCorrections();
}
</script>
</head>
<body>
<p>[]</p>
</body>
</html>