blob: 9fa047bb1cb81b807421e7da6eab41dfa052dd05 [file] [log] [blame]
This tests the correct placement of inline spelling and grammar markers in the following text: 'the the adlj adaasj sdklj. there there'. Spelling markers should line up exactly under misspelled words in all cases.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
testLTR
Verifies 'adlj'.
PASS internals.hasSpellingMarker(8, 4) became true
Verifies 'adaasj'.
PASS internals.hasSpellingMarker(13, 6) became true
Verifies 'sdklj'.
PASS internals.hasSpellingMarker(20, 5) became true
Verifies duplicated 'the'.
PASS internals.hasGrammarMarker(4, 3) became true
Verifies duplicated 'there'.
PASS internals.hasGrammarMarker(33, 5) became true
testRTL
Verifies 'adlj'.
PASS internals.hasSpellingMarker(8, 4) became true
Verifies 'adaasj'.
PASS internals.hasSpellingMarker(13, 6) became true
Verifies 'sdklj'.
PASS internals.hasSpellingMarker(20, 5) became true
Verifies duplicated 'the'.
PASS internals.hasGrammarMarker(4, 3) became true
Verifies duplicated 'there'.
PASS internals.hasGrammarMarker(33, 5) became true
testLTREllipses
Verifies 'adlj'.
PASS internals.hasSpellingMarker(8, 4) became true
Verifies 'adaasj'.
PASS internals.hasSpellingMarker(13, 6) became true
Verifies 'sdklj'.
PASS internals.hasSpellingMarker(20, 5) became true
Verifies duplicated 'the'.
PASS internals.hasGrammarMarker(4, 3) became true
Verifies duplicated 'there'.
PASS internals.hasGrammarMarker(33, 5) became true
testRTLEllipses
Verifies 'adlj'.
PASS internals.hasSpellingMarker(8, 4) became true
Verifies 'adaasj'.
PASS internals.hasSpellingMarker(13, 6) became true
Verifies 'sdklj'.
PASS internals.hasSpellingMarker(20, 5) became true
Verifies duplicated 'the'.
PASS internals.hasGrammarMarker(4, 3) became true
Verifies duplicated 'there'.
PASS internals.hasGrammarMarker(33, 5) became true
PASS successfullyParsed is true
TEST COMPLETE
LTR
the the adlj adaasj sdklj. there there 
RTL
the the adlj adaasj sdklj. there there 
LTR (text-overflow:ellipses):
the the adlj adaasj sdklj. there there 
RTL (text-overflow:ellipses):
the the adlj adaasj sdklj. there there