blob: 49ad8317765c7c9973b5abd39bf7243b43715cad [file] [log] [blame]
The test verifies if the spelling markers remain if whitespace is added before or after the misspelled word or the caret is moved. The test succeeds if the word 'meagesga' has a red underline.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Test: Has misspelled word:
PASS internals.hasSpellingMarker(7, 8) became true
Test: Insert space before misspelled word:
test.setSelectionRange(7, 7)
typeCharacterCommand(' ')
PASS internals.hasSpellingMarker(8, 8) became true
Test: Insert space after misspelled word:
test.setSelectionRange(15, 15)
typeCharacterCommand(' ')
PASS internals.hasSpellingMarker(7, 8) became true
Test: Move caret:
execMoveSelectionBackwardByCharacterCommand()
PASS internals.hasSpellingMarker(7, 8) became true
PASS successfullyParsed is true
TEST COMPLETE