removeformatting_test.js
No description.

File Location

/goog/editor/plugins/removeformatting_test.js


Public Protected Private

Global Functions

testGetValueForNode&oldGetValue()
No description.
code »
replacementFormattingFunc(text) string
A short formatting removal function for use with the RemoveFormatting plugin. Does enough that we can tell this function was run over the document.
Arguments:
text : string
The HTML in from the document.
Returns: string  The "cleaned" HTML out.
code »
runExpectingFailuresForUnimplementedBrowsers()
No description.
code »
setUp()
No description.
code »
setUpPage()
No description.
code »
setUpTableTests()
No description.
code »
tearDown()
No description.
code »
testAlternateRemoveFormattingFunction()
No description.
code »
testBasicRemoveFormatting()
No description.
code »
testFullListRemoveFormat()
No description.
code »
testFullTableRemoveFormatting()
No description.
code »
testGetTableAncestor()
No description.
code »
testGetValueForNode()
No description.
code »
testHardReturnsInHeadersPreserved()
No description.
code »
testInsideListRemoveFormat()
No description.
code »
testInsideTableRemoveFormatting()
No description.
code »
testKeyboardShortcut_other()
No description.
code »
testKeyboardShortcut_space()
No description.
code »
testLinksAreNotRemoved()
No description.
code »
testPartialBasicRemoveFormatting()
No description.
code »
testPartialListRemoveFormat()
No description.
code »
testPartialTableRemoveFormatting()
No description.
code »
testRandomGoogleNewsSnippetRemoveFormatting()
Test a random snippet from Google News (Google News has complicated dom structure, including tables, links, images, etc).
code »
testRangeDelimitedByRanges()
No description.
code »
testRemoveFormattingAddsNoNbsps()
No description.
code »
testRemoveFormattingDoesNotShrinkSelection()
No description.
code »
testRemoveFormattingForTableFormatting()
Test that when we perform remove formatting on an entire table, that the visual look is similiar to as if there was a table there.
code »
testRemoveFormattingLinkedImageBorderNonzero()
No description.
code »
testRemoveFormattingLinkedImageBorderZero()
No description.
code »
testRemoveFormattingLinkedImageDeep()
No description.
code »
testRemoveFormattingNestedDivs()
No description.
code »
testRemoveFormattingUnlinkedImage()
No description.
code »
testTableDataIsNotRemoved()
We select two cells from the table and then make sure that there is no data loss and basic formatting is removed from each cell.
code »
testTableTagsAreNotRemoved()
No description.
code »
testTwoTablesSelectedFullyAndPartiallyRemoveFormatting()
No description.
code »
testTwoTablesSelectedFullyInsideRemoveFormatting()
No description.
code »
testTwoTablesSelectedFullyRemoveFormatting()
No description.
code »
testTwoTablesSelectedPartiallyRemoveFormatting()
No description.
code »

Global Variables

No description.
Code »
No description.
Code »
SAVED_HTML :
No description.
Code »
WEBKIT_AFTER_CHROME_16 :
No description.
Code »
WEBKIT_AFTER_CHROME_21 :
No description.
Code »
WEBKIT_BEFORE_CHROME_8 :
No description.
Code »
controlCleanHtml :
No description.
Code »
controlHtml :
No description.
Code »
insertImageBoldGarbage :
No description.
Code »
insertImageFontGarbage :
No description.
Code »
span :
No description.
Code »
No description.
Code »

Directory plugins

File Reference