2 This tests onSelect for textareas.
3 This also makes sure that the correct selection is restored when the element regains focus.
5 Calling focus on textarea
6 After focus: textarea selection start: 0 end: 0
8 Calling setSelectionRange on textarea
9 After setSelectionRange(5, 10): textarea selection start: 5 end: 10
11 Double clicking to make selection for textarea
12 onselect fired for textarea
13 After double clicking: textarea selection start: 9 end: 13
15 Calling blur on textarea
16 After blur: textarea selection start: 9 end: 13
18 Calling focus on textarea
19 After focus: textarea selection start: 9 end: 13