blob: af4c2d82ab8ab2d95f8c036ceffe63de1c2cafe5 [file] [log] [blame]
Tests for selectionStart and selectionEnd on read-only INPUT and TEXTAREA.
bug 25444: SelectionStart, selectionEnd properties return wrong values when the selection is in a form input.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS element.selectionStart is 0
PASS element.selectionEnd is 10
PASS element.selectionStart is 0
PASS element.selectionEnd is 9
PASS element.selectionStart is 1
PASS element.selectionEnd is 10
PASS element.selectionStart is 5
PASS element.selectionEnd is 5
PASS element.selectionStart is 5
PASS element.selectionEnd is 5
PASS element.selectionStart is 0
PASS element.selectionEnd is 0
FAIL element.selectionStart should be 0 but it is 10
PASS element.selectionEnd is 10
PASS element.selectionStart is 0
PASS element.selectionEnd is 10
PASS element.selectionStart is 0
PASS element.selectionEnd is 9
PASS element.selectionStart is 1
PASS element.selectionEnd is 10
PASS element.selectionStart is 5
PASS element.selectionEnd is 5
PASS element.selectionStart is 5
PASS element.selectionEnd is 5
PASS element.selectionStart is 0
PASS element.selectionEnd is 0
FAIL element.selectionStart should be 0 but it is 10
PASS element.selectionEnd is 10
PASS successfullyParsed is true
TEST COMPLETE