blob: 38fa018ba27460fa997fdba97a9a1669e3eccb74 [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
PASS element.selectionStart is 0
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
PASS element.selectionStart is 0
PASS element.selectionEnd is 10
PASS successfullyParsed is true
TEST COMPLETE