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, testFake
assertEquals, 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, toString
public void testScan() throws ParserException
ParserException
public void testScanBug() throws ParserException
ParserException
- ParserExceptionpublic void testScanBugWG() throws ParserException
ParserException
- ParserExceptionpublic void testScanScriptWithLinks() throws ParserException
ParserException
public void testScanScriptWithComments() throws ParserException
ParserException
public void testScriptTagComments() throws ParserException
ParserException
- ParserExceptionpublic void testScriptTagsGeneratedByScriptCode() throws java.lang.Exception
java.lang.Exception
- Exceptionpublic void testScriptCodeExtraction() throws ParserException
ParserException
public void testScriptCodeExtractionWithMultipleQuotes() throws ParserException
ParserException
public void testScriptWithinComments() throws java.lang.Exception
java.lang.Exception
public void testScriptCodeExtractionWithNewlines() throws ParserException
ParserException
- ParserExceptionpublic void testScanNoEndTag() throws ParserException
ParserException
- ParserExceptionpublic void testScanQuotedEndTag() throws ParserException
ParserException
public void testScanScriptWithTagsInComment() throws ParserException
ParserException
public void testScanScriptWithJavascriptLineEndings() throws ParserException
ParserException
public void testScanScriptWithTags() throws ParserException
ParserException
public void testScriptsWithForm() throws ParserException
ParserException
- ParserExceptionpublic void testDecodeScript() throws ParserException
ParserException
- ParserExceptionpublic void testDecodePage() throws ParserException
ParserException
- ParserException