[Htmlparser-cvs] htmlparser/src/org/htmlparser/tests/tagTests InputTagTest.java,1.25,1.26 TagTest.ja
Brought to you by:
derrickoswald
|
From: <der...@us...> - 2003-08-15 20:55:23
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/tagTests
In directory sc8-pr-cvs1:/tmp/cvs-serv3543/tests/tagTests
Modified Files:
InputTagTest.java TagTest.java
Log Message:
Case maintaining toHtml() output for tag attributes.
With these changes, the output of toHtml() now reflects the upper/lower case values
of the input for the contents of tags, i.e. attribute names maintain their original case.
They're still out of order from how they are parsed, but this is a first step.
Rather than adjust all the test cases right now, the ParserTestCase assertSameString()
method now checks a global flag to see if case matters when comparing strings.
As of this drop it ignores case when comparing HTML output. This will soon change.
Index: InputTagTest.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/tagTests/InputTagTest.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** InputTagTest.java 11 Aug 2003 00:18:33 -0000 1.25
--- InputTagTest.java 15 Aug 2003 20:51:48 -0000 1.26
***************
*** 58,62 ****
InputTag InputTag;
InputTag = (InputTag) node[0];
! assertEquals("HTML String","<INPUT NAME=\"Google\" TYPE=\"text\">",InputTag.toHtml());
}
--- 58,62 ----
InputTag InputTag;
InputTag = (InputTag) node[0];
! assertStringEquals ("HTML String","<INPUT NAME=\"Google\" TYPE=\"text\">",InputTag.toHtml());
}
Index: TagTest.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/tagTests/TagTest.java,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** TagTest.java 11 Aug 2003 00:18:33 -0000 1.36
--- TagTest.java 15 Aug 2003 20:51:48 -0000 1.37
***************
*** 673,677 ****
}
assertNotNull ("No nodes", temp);
! assertEquals ("Incorrect HTML output: ",
"<A HREF=\"http://www.google.com/webhp?hl=en\"></A>",
temp);
--- 673,677 ----
}
assertNotNull ("No nodes", temp);
! assertStringEquals ("Incorrect HTML output: ",
"<A HREF=\"http://www.google.com/webhp?hl=en\"></A>",
temp);
|