haikuwebkit/LayoutTests/fast/forms/selection-start-end-readonl...

41 lines
1.2 KiB
Plaintext

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