|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.htmlparser.tests.ParserTestCase org.htmlparser.tests.scannersTests.ScriptScannerTest
Field Summary |
Fields inherited from class org.htmlparser.tests.ParserTestCase |
mLexer, node, nodeCount, parser |
Constructor Summary | |
ScriptScannerTest(java.lang.String name)
|
Method Summary | |
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()
See bug #741769 ScriptScanner doesn't handle quoted tags |
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()
|
Methods inherited from class org.htmlparser.tests.ParserTestCase |
assertHiddenIDTagPresent, assertNodeCount, assertNodeCount, assertSameType, assertStringEquals, assertSuperType, assertTagEquals, assertType, assertXmlEquals, createParser, createParser, createParser, createParser, failWithMessage, getParser, main, parse, parseAndAssertNodeCount, parseNodes, removeEscapeCharacters, setParser |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ScriptScannerTest(java.lang.String name)
Method Detail |
public void testScan() throws ParserException
ParserException
public void testScanBug() throws ParserException
ParserException
public void testScanBugWG() throws ParserException
ParserException
public void testScanScriptWithLinks() throws ParserException
ParserException
public void testScanScriptWithComments() throws ParserException
ParserException
public void testScriptTagComments() throws ParserException
ParserException
public void testScriptTagsGeneratedByScriptCode() throws java.lang.Exception
java.lang.Exception
public 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
public void testScanNoEndTag() throws ParserException
ParserException
public 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
public void testDecodeScript() throws ParserException
ParserException
public void testDecodePage() throws ParserException
ParserException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |