blob: fbb0545a228cb57b1a0f31fa4ea0d1311b6f5025 [file] [log] [blame]
This tests onSelect for textareas.
This also makes sure that the correct selection is restored when the element regains focus.
Calling focus on textarea
After focus: textarea selection start: 0 end: 0
Calling setSelectionRange on textarea
After setSelectionRange(5, 10): textarea selection start: 5 end: 10
Double clicking to make selection for textarea
onselect fired for textarea
After double clicking: textarea selection start: 8 end: 9
Calling blur on textarea
After blur: textarea selection start: 8 end: 9
Calling focus on textarea
After focus: textarea selection start: 8 end: 9