htmlprettyprinter_test.js
No description.

File Location

/goog/format/htmlprettyprinter_test.js


Public Protected Private

Global Functions

setUp()
No description.
code »
tearDown()
No description.
code »
testAvoidDataLoss()
We have a sanity check in HtmlPrettyPrinter to make sure the regex fully tokenizes the string. We should never hit this, but we include it on the chance there is some corner case where the pattern would miss a section of original string. It's not generally a good idea to break the implementation to test behavior, but this is the easiest way to mimic a bad internal state.
code »
testComplexHtml()
No description.
code »
testCrlf()
No description.
code »
testEndInLineBreak()
No description.
code »
testExtraLines()
No description.
code »
testKeepLeadingIndent()
No description.
code »
testLists()
FF3.0 doesn't like \n between and . See bug 1520665.
code »
testRegexMakesProgress()
We have a sanity check in HtmlPrettyPrinter to make sure the regex index advances after every match. We should never hit this, but we include it on the chance there is some corner case where the pattern would match but not process a new token. It's not generally a good idea to break the implementation to test behavior, but this is the easiest way to mimic a bad internal state.
code »
testSimpleHtml()
No description.
code »
testSimpleHtmlMixedCase()
No description.
code »
testTable()
No description.
code »
testTimeout()
No description.
code »
testTrimLeadingLineBreaks()
No description.
code »

Global Variables

COMPLEX_HTML :
No description.
Code »
No description.
Code »
mockClockTicks :
No description.
Code »

Directory format

File Reference