blob: 7350afceaed32edcf1d8ecf65b0a8f5b6b1b7e02 [file] [log] [blame]
This tests that the line number of a character offset is computed correctly for textarea elements.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS axArea1.lineForIndex(index) is 0
PASS axArea1.lineForIndex(index) is 0
PASS axArea1.lineForIndex(index) is 0
PASS axArea1.lineForIndex(index) is 0
PASS axArea1.lineForIndex(index) is 0
PASS axArea1.lineForIndex(index) is 0
PASS axArea1.lineForIndex(index) is 0
PASS axArea1.lineForIndex(index) is 1
PASS axArea1.lineForIndex(index) is 1
PASS axArea1.lineForIndex(index) is 1
PASS axArea1.lineForIndex(index) is 1
PASS axArea1.lineForIndex(index) is 1
PASS axArea1.lineForIndex(index) is 1
PASS axArea1.lineForIndex(index) is 1
PASS axArea1.lineForIndex(index) is 2
PASS axArea1.lineForIndex(index) is 2
PASS axArea1.lineForIndex(index) is 2
PASS axArea1.lineForIndex(index) is 2
PASS axArea1.lineForIndex(index) is 2
PASS axArea1.lineForIndex(index) is 2
PASS axArea1.lineForIndex(index) is 2
PASS axArea1.lineForIndex(area1.textLength) is 2
PASS successfullyParsed is true
TEST COMPLETE