blob: 59ce3dbc34aca1a3609c07c650e965c3df848247 [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();
var text = findTextMatching(/four/);
DOM_deleteNode(text.parentNode);
PostponedActions_perform();
return showCorrections();
}
</script>
</head>
<body>
<p>[]</p>
</body>
</html>