blob: cc8a2eeec30b3d3be27883d836ef40264b0128cc [file] [log] [blame]
outside text
This tests that the select text mechanism will not return results outside of a text input control.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS result is 'textfield'
PASS document.getElementById('textfield').selectionStart is 0
PASS document.getElementById('textfield').selectionEnd is 9
PASS result is ''
PASS document.getElementById('textfield').selectionStart is 0
PASS document.getElementById('textfield').selectionEnd is 0
PASS result is 'text area'
PASS document.getElementById('textarea').selectionStart is 0
PASS document.getElementById('textarea').selectionEnd is 9
PASS result is ''
PASS document.getElementById('textarea').selectionStart is 0
PASS document.getElementById('textarea').selectionEnd is 0
PASS successfullyParsed is true
TEST COMPLETE