blob: 3f20e6975f32ddc0a5c4e1ac31f9bb074f0e0238 [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