Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/lexerTests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27590/tests/lexerTests
Modified Files:
PageTests.java
Log Message:
Fix Bug #1461473 Relative links starting with ?
Added overloaded methods taking boolean 'strict' flag on URL manipulators.
Default is loose interpretation like most browsers.
Index: PageTests.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/lexerTests/PageTests.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** PageTests.java 15 May 2005 11:49:05 -0000 1.19
--- PageTests.java 7 Apr 2006 00:58:19 -0000 1.20
***************
*** 192,196 ****
public void test7 () throws ParserException
{
! assertEquals ("test7 failed", "http://a/b/c/?y", mPage.getAbsoluteURL ("?y"));
}
public void test8 () throws ParserException
--- 192,197 ----
public void test7 () throws ParserException
{
! assertEquals ("test7 strict failed", "http://a/b/c/?y", mPage.getAbsoluteURL ("?y", true));
! assertEquals ("test7 non-strict failed", "http://a/b/c/d;p?y", mPage.getAbsoluteURL ("?y"));
}
public void test8 () throws ParserException
|