goog.testing.editor.dom
Functions
assertRangeBetweenText( before, after, range, opt_stopAt ) → void
void
Assert that the range is surrounded by the given strings. This is useful because different browsers can place the range endpoints inside different nodes even when visually the range looks the same. Also, there may be empty text nodes in the way (again depending on the browser) making it difficult to use assertRangeEquals.
Parameters |
|
---|
getNextNonEmptyTextNode( node, opt_stopAt, opt_skipDescendants ) → (Text|null)
(Text|null)
Returns the next (in document order) node from the given node that is a non-empty text node, or null if none is found or opt_stopAt is not an ancestor of node. Note that if the given node has children, the search will start from the start tag of the node, meaning all its descendants will be included in the search, unless opt_skipDescendants is true.
Parameters |
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|
getPreviousNonEmptyTextNode( node, opt_stopAt, opt_skipDescendants ) → (Text|null)
(Text|null)
Returns the previous (in document order) node from the given node that is a non-empty text node, or null if none is found or opt_stopAt is not an ancestor of node. Note that if the given node has children, the search will start from the end tag of the node, meaning all its descendants will be included in the search, unless opt_skipDescendants is true.
Parameters |
| ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|