public class ScriptScannerTest extends ParserTestCase
| 构造器和说明 |
|---|
ScriptScannerTest(java.lang.String name) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
testDecodePage()
See bug #902121 StringBean throws NullPointerException
Contributed by Reza Motori (rezamotori)
|
void |
testDecodeScript()
See bug #902121 StringBean throws NullPointerException
Contributed by Reza Motori (rezamotori)
|
void |
testScan() |
void |
testScanBug()
Test javascript tag attributes.
|
void |
testScanBugWG()
Test script code.
|
void |
testScanNoEndTag()
Tests a bug in ScriptScanner where a NPE would be thrown if the
script tag was not closed before the document ended.
|
void |
testScanQuotedEndTag() |
void |
testScanScriptWithComments() |
void |
testScanScriptWithJavascriptLineEndings() |
void |
testScanScriptWithLinks() |
void |
testScanScriptWithTags() |
void |
testScanScriptWithTagsInComment() |
void |
testScriptCodeExtraction() |
void |
testScriptCodeExtractionWithMultipleQuotes() |
void |
testScriptCodeExtractionWithNewlines()
There was a bug in the ScriptScanner when there was multiline script and
the last line did not have a newline before the end script tag.
|
void |
testScriptsWithForm()
See bug #839264 toHtml() parse error in Javascripts with "form" keyword
Contributed by Ivan Wang (xj92wang)
|
void |
testScriptTagComments()
Submitted by Dhaval Udani - reproducing bug 664404
|
void |
testScriptTagsGeneratedByScriptCode()
Duplicates bug reported by James Moliere - whereby,
if script tags are generated by script code, the parser
interprets them as real tags.
|
void |
testScriptWithinComments() |
assertNodeCount, assertSameType, assertStringEquals, assertSuperType, assertTagEquals, assertType, assertXmlEquals, failWithMessage, getParser, main, parseAndAssertNodeCount, parseNodes, removeEscapeCharacters, setParser, testFakeassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toStringpublic void testScan()
throws ParserException
ParserExceptionpublic void testScanBug()
throws ParserException
ParserException - ParserExceptionpublic void testScanBugWG()
throws ParserException
ParserException - ParserExceptionpublic void testScanScriptWithLinks()
throws ParserException
ParserExceptionpublic void testScanScriptWithComments()
throws ParserException
ParserExceptionpublic void testScriptTagComments()
throws ParserException
ParserException - ParserExceptionpublic void testScriptTagsGeneratedByScriptCode()
throws java.lang.Exception
java.lang.Exception - Exceptionpublic void testScriptCodeExtraction()
throws ParserException
ParserExceptionpublic void testScriptCodeExtractionWithMultipleQuotes()
throws ParserException
ParserExceptionpublic void testScriptWithinComments()
throws java.lang.Exception
java.lang.Exceptionpublic void testScriptCodeExtractionWithNewlines()
throws ParserException
ParserException - ParserExceptionpublic void testScanNoEndTag()
throws ParserException
ParserException - ParserExceptionpublic void testScanQuotedEndTag()
throws ParserException
ParserExceptionpublic void testScanScriptWithTagsInComment()
throws ParserException
ParserExceptionpublic void testScanScriptWithJavascriptLineEndings()
throws ParserException
ParserExceptionpublic void testScanScriptWithTags()
throws ParserException
ParserExceptionpublic void testScriptsWithForm()
throws ParserException
ParserException - ParserExceptionpublic void testDecodeScript()
throws ParserException
ParserException - ParserExceptionpublic void testDecodePage()
throws ParserException
ParserException - ParserException