selection_test.js
No description.

File Location

/goog/dom/selection_test.js


Public Protected Private

Global Functions

checkSetAndGetTextarea()
Helper function to set the start and end and assert the getter values.
code »
clearField()
Helper function to clear the textfield contents.
code »
getAndSetSelectedTextHelper()
No description.
code »
getStartHelper()
No description.
code »
select()
Helper function to focus and select a field. In IE8, selected fields need focus.
code »
setCursorHelper()
No description.
code »
setCursorOnHiddenInputHelper()
No description.
code »
setTextHelper()
No description.
code »
setUp()
No description.
code »
tearDown()
No description.
code »
testGetAndSetSelectedTextInput()
Tests the getText and setText routines acting on selected text in both input and textarea.
code »
testGetAndSetSelectedTextTextarea()
No description.
code »
testGetStartInput()
Tests getStart routine in both input and textarea.
code »
testGetStartOnUnfocusedTextarea()
Test to make sure there's no error when getting the range of an unselected textarea. See bug 1274027.
code »
testGetStartTextarea()
No description.
code »
testSetAndGetCursorWithLineBreaks()
Test setStart, setEnd, getStart and getEnd in textarea with text containing line breaks.
code »
testSetCursorInput()
Tests the setCursor routine for both input and textarea.
code »
testSetCursorOnHiddenInput()
Test setStart on hidden input and hidden textarea.
code »
testSetCursorOnHiddenTextarea()
No description.
code »
testSetCursorPositionTextareaWithNewlines()
Test to make sure there's no error setting cursor position within a textarea after a newline. This is problematic on IE because of the '\r\n' vs '\n' issue.
code »
testSetCursorTextarea()
No description.
code »
testSetTextInput()
Tests the setText routine for both input and textarea with a single line of text.
code »
testSetTextMultipleLines()
Tests the setText routine for textarea with multiple lines of text.
code »
testSetTextTextarea()
No description.
code »

Global Variables

endOfOneNewline :
No description.
Code »
hiddenInput :
No description.
Code »
hiddenTextarea :
No description.
Code »
input :
No description.
Code »
textarea :
No description.
Code »

Directory dom

File Reference