|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.htmlparser.tests.ParserTestCase
org.htmlparser.tests.lexerTests.AttributeTests
Field Summary |
Fields inherited from class org.htmlparser.tests.ParserTestCase |
mLexer, node, nodeCount, parser |
Constructor Summary | |
AttributeTests(java.lang.String name)
|
Method Summary | |
void |
getParameterTableFor(java.lang.String tagContents)
|
void |
getParameterTableFor(java.lang.String tagContents,
boolean dump)
|
void |
testAltAndSrc()
see bug #778781 SRC-attribute suppression in IMG-tags |
void |
testAttributeWithSpuriousEqualTo()
Test attribute containing an equals sign. |
void |
testConstructors()
Test constructors. |
void |
testConstructors2()
Test constructors. |
void |
testEmptyAltAndSrc()
see bug #778781 SRC-attribute suppression in IMG-tags |
void |
testEmptyTag()
Check that an empty tag is considered a string node. |
void |
testIncorrectSpaceKeyBug()
This is a simulation of a bug reported by Dhaval Udani - wherein a space before the end of the tag causes a problem - there is a key in the table with just a space in it and an empty value |
void |
testJspWithinAttributes()
Test attributes when they contain scriptlets. |
void |
testMissingAttribute()
Test missing value. |
void |
testNoSpace()
see bug #979893 Not Parsing all Attributes |
void |
testNullTag()
Test empty attribute. |
void |
testParseEmptyValues()
Test empty value. |
void |
testParseMissingEqual()
Test no equals or whitespace. |
void |
testParseParameters()
Test simple value. |
void |
testParseTokenValues()
Test quote value. |
void |
testPlainParams()
Test unquoted attributes. |
void |
testPredicates()
see bug #911565 isValued() and isNull() don't work |
void |
testProperties()
Test bean properties. |
void |
testProperties2()
Test bean properties. |
void |
testQuestionMarksInAttributes()
Test attribute containing a question mark. |
void |
testRule1()
Test Rule 1. |
void |
testRule2()
Test Rule 2. |
void |
testRule3()
Test Rule 3. |
void |
testRule4()
Test Rule 4. |
void |
testRule5()
Test Rule 5. |
void |
testScriptedTag()
Test Script in attributes. |
void |
testSetQuote()
see bug #911565 isValued() and isNull() don't work |
void |
testSrcAndAlt()
Test for lost attributes. |
void |
testSrcAndEmptyAlt()
see bug #778781 SRC-attribute suppression in IMG-tags |
void |
testStandaloneAttribute()
Test that stand-alone attributes are kept that way, rather than being given empty values. |
void |
testTwoParams()
Test multiple attributes. |
void |
testValueMissing()
Test standalone attribute. |
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 AttributeTests(java.lang.String name)
Method Detail |
public void getParameterTableFor(java.lang.String tagContents)
public void getParameterTableFor(java.lang.String tagContents, boolean dump)
public void testConstructors()
public void testProperties()
public void testConstructors2()
public void testProperties2()
public void testParseParameters()
public void testParseTokenValues()
public void testParseEmptyValues()
public void testParseMissingEqual()
public void testTwoParams()
public void testPlainParams()
public void testValueMissing()
public void testIncorrectSpaceKeyBug()
public void testNullTag()
public void testAttributeWithSpuriousEqualTo()
public void testQuestionMarksInAttributes()
public void testEmptyTag()
"basic_string<char, string_char_traits<char>, <>>::basic_string()"This was throwing a null pointer exception when the empty <> was encountered. Bug #725420 NPE in StringBean.visitTag
public void testJspWithinAttributes()
public void testScriptedTag()
public void testStandaloneAttribute()
public void testMissingAttribute()
public void testRule1()
public void testRule2()
public void testRule3()
public void testRule4()
public void testRule5()
public void testSrcAndAlt() throws ParserException
ParserException
public void testSrcAndEmptyAlt() throws ParserException
ParserException
public void testAltAndSrc() throws ParserException
ParserException
public void testEmptyAltAndSrc() throws ParserException
ParserException
public void testPredicates() throws ParserException
ParserException
public void testSetQuote() throws ParserException
ParserException
public void testNoSpace() throws ParserException
ParserException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |