enterhandler_test.js
No description.

File Location

/goog/editor/plugins/enterhandler_test.js


Public Protected Private

Global Functions

assertChangeFlags()
Asserts that both change flags were fired since the last reset.
code »
assertPreparedContents()
Assert that the prepared contents matches the expected.
code »
getNbsp()
No description.
code »
makeField(id) goog.editor.Field
Creates a field with only the enter handler plugged in, for testing.
Arguments:
id : string
A DOM id.
Returns: goog.editor.Field  A field.
code »
resetChangeFlags()
Reset all the global flags related to change events.
code »
selectNodeAndHitEnter(fieldid) boolean
Selects the node at the given id, and simulates an ENTER keypress.
Arguments:
field : goog.editor.Field
The field with the node.
id : string
A DOM id.
Returns: boolean  Whether preventDefault was called on the event.
code »
setUp()
No description.
code »
setUpFields()
No description.
code »
setUpPage()
No description.
code »
tearDown()
No description.
code »
testCollapsedSelectionKeepsBrOpera()
Tests that deleteCursorSelectionW3C_ correctly recognizes visually collapsed selections in Opera even if they contain a
. See the deleteCursorSelectionW3C_ comment in enterhandler.js.
code »
testDeleteBeforeBlockquote()
Tests that deleting a BR before a blockquote doesn't remove quoted text.
code »
testDeleteBrBeforeBlock()
Tests that deleting a BR that comes right before a block element works.
code »
testDeleteBrNormal()
Tests that deleting a BR is working normally (that the workaround for the bug is not causing double deletes).
code »
testDeleteW3CAll()
No description.
code »
testDeleteW3CNonPartialEnd()
No description.
code »
testDeleteW3CPartialEnd()
No description.
code »
testDeleteW3CSimple()
No description.
code »
testDeletingEndNodesWithNoNewLine()
No description.
code »
testEnterAtEndOfBlockInWebkit()
No description.
code »
testEnterInBlockquoteCreatesDivInBrMode()
No description.
code »
testEnterInBlockquoteRemovesExtraNodes()
Tests that pressing enter in a blockquote doesn't create unnecessary DOM subtrees.
code »
testEnterInBlockquoteRemovesUnnecessaryBrWithCursorAfterBr()
Tests that breaking after a BR doesn't result in unnecessary newlines.
code »
testEnterInBlockquoteRemovesUnnecessaryBrWithCursorBeforeBr()
Tests that breaking in a text node before a BR doesn't result in unnecessary newlines.
code »
testEnterInList()
No description.
code »
testEnterInNonSetupBlockquote()
No description.
code »
testEnterInNonSetupBlockquoteWhenClassnameIsNotRequired()
No description.
code »
testEnterInSetupBlockquote()
No description.
code »
testIsInOneContainer()
No description.
code »
testPrepareContent()
No description.
code »
waitForChangeEvents()
Wait for delayedchange to propagate.
code »

Global Variables

EXPECTEDFAILURES : goog.testing.ExpectedFailures
No description.
Code »
container :
No description.
Code »
No description.
Code »
firedBeforeChange :
No description.
Code »
firedDelayedChange :
No description.
Code »

Directory plugins

File Reference