|
|||||||||||
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.tagTests.TagTest
Field Summary |
Fields inherited from class org.htmlparser.tests.ParserTestCase |
mLexer, node, nodeCount, parser |
Constructor Summary | |
TagTest(java.lang.String name)
|
Method Summary | |
void |
testAttributesReconstruction()
|
void |
testBodyTagBug1()
The bug being reproduced is this : <BODY aLink=#ff0000 bgColor=#ffffff link=#0000cc onload=setfocus() text=#000000 vLink=#551a8b> The above line is incorrectly parsed in that, the BODY tag is not identified. |
void |
testBrokenTag()
Bug report by Cedric Rosa, causing null pointer exceptions when encountering a broken tag, and if this has no further lines to parse |
void |
testEmptyTag()
Ignore empty tags. |
void |
testEmptyTag2()
Ignore empty tags. |
void |
testEmptyTag3()
Ignore empty tags. |
void |
testEmptyTag4()
Ignore empty tags. |
void |
testEmptyTag5()
Ignore empty tags. |
void |
testEmptyTag6()
Ignore empty tags. |
void |
testEmptyTagParseParameter()
Test parseParameter method Created by Kaarle Kaila (09 Jan 2003) This test just wants the text in the element |
void |
testHTMLOutputOfDifficultLinksWithRegisterScanners()
See bug #741026 registerScanners() mangles output HTML badly. |
void |
testIgnoreState()
|
void |
testIncorrectInvertedCommas()
|
void |
testIncorrectInvertedCommas2()
|
void |
testIncorrectInvertedCommas3()
|
void |
testLargeTagBug()
The following should be identified as a tag : <MYTAG abcd\n"+ "efgh\n"+ "ijkl\n"+ "mnop> Creation date: (6/17/2001 5:27:42 PM) |
void |
testNestedTags()
Bug reported by Gordon Deudney 2002-03-15 Nested JSP Tags were not working |
void |
testParameterChange()
See bug #740411 setParsed() has no effect on output. |
void |
testParseParameter3()
Test parseParameter method Created by Kaarle Kaila (august 2001) the tag name is here G |
void |
testParseParameterA()
Test parseParameter method Created by Kaarle Kaila (august 2001) the tag name is here A (and should be eaten up by linkScanner) |
void |
testParseParameterG()
Test parseParameter method Created by Kaarle Kaila (august 2001) the tag name is here G |
void |
testParseParameterSpace()
Test parseParameter method Created by Kaarle Kaila (august 2002) the tag name is here A (and should be eaten up by linkScanner) Tests elements where = sign is surrounded by spaces |
void |
testSetText()
See bug #726913 toHtml() method incomplete |
void |
testStrictParsing()
Reproduction of a bug reported by Annette Doyle This is actually a pretty good example of dirty html - we are in a fix here, bcos the font tag (the first one) has an erroneous inverted comma. |
void |
testStyleSheetTag()
|
void |
testTabText()
From oyoaha |
void |
testTagInsideTag()
|
void |
testToHTML()
|
void |
testWithoutParseParameter()
Test parseParameter method Created by Kaarle Kaila (22 Oct 2001) This test just wants the text in the element |
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 TagTest(java.lang.String name)
Method Detail |
public void testBodyTagBug1() throws ParserException
ParserException
public void testLargeTagBug() throws ParserException
ParserException
public void testNestedTags() throws ParserException
ParserException
public void testParseParameter3() throws ParserException
ParserException
public void testParseParameterA() throws ParserException
ParserException
public void testParseParameterG() throws ParserException
ParserException
public void testParseParameterSpace() throws ParserException
ParserException
public void testStrictParsing() throws ParserException
ParserException
public void testToHTML() throws ParserException
ParserException
public void testWithoutParseParameter() throws ParserException
ParserException
public void testEmptyTagParseParameter() throws ParserException
ParserException
public void testStyleSheetTag() throws ParserException
ParserException
public void testBrokenTag() throws ParserException
ParserException
public void testTagInsideTag() throws ParserException
ParserException
public void testIncorrectInvertedCommas() throws ParserException
ParserException
public void testIncorrectInvertedCommas2() throws ParserException
ParserException
public void testIncorrectInvertedCommas3() throws ParserException
ParserException
public void testEmptyTag() throws ParserException
ParserException
public void testEmptyTag2() throws ParserException
ParserException
public void testEmptyTag3() throws ParserException
ParserException
public void testEmptyTag4() throws ParserException
ParserException
public void testEmptyTag5() throws ParserException
ParserException
public void testEmptyTag6() throws ParserException
ParserException
public void testAttributesReconstruction() throws ParserException
ParserException
public void testIgnoreState() throws ParserException
ParserException
public void testSetText() throws ParserException
ParserException
public void testTabText() throws ParserException
ParserException
public void testHTMLOutputOfDifficultLinksWithRegisterScanners() throws ParserException
ParserException
public void testParameterChange() throws ParserException
ParserException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |