Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/tagTests
In directory sc8-pr-cvs1:/tmp/cvs-serv12839/src/org/htmlparser/tests/tagTests
Modified Files:
ImageTagTest.java
Log Message:
Move LinkProcess out of scanners and into Page, untangling A, IMG and BASE scanners.
Move form action determination to tag.
The scanners have no special actions on behalf of tags anymore.
Index: ImageTagTest.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/tagTests/ImageTagTest.java,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -d -r1.34 -r1.35
*** ImageTagTest.java 26 Oct 2003 19:46:27 -0000 1.34
--- ImageTagTest.java 29 Oct 2003 03:31:18 -0000 1.35
***************
*** 61,65 ****
createParser("<IMG alt=Google height=115 src=\"goo/title_homepage4.gif\" width=305>","http://www.google.com/test/index.html");
// Register the image scanner
! parser.addScanner(new ImageScanner("-i",new LinkProcessor()));
parseAndAssertNodeCount(1);
--- 61,65 ----
createParser("<IMG alt=Google height=115 src=\"goo/title_homepage4.gif\" width=305>","http://www.google.com/test/index.html");
// Register the image scanner
! parser.addScanner(new ImageScanner("-i"));
parseAndAssertNodeCount(1);
***************
*** 81,85 ****
createParser("<IMG alt=Google height=115 src=\"../goo/title_homepage4.gif\" width=305>","http://www.google.com/test/");
// Register the image scanner
! parser.addScanner(new ImageScanner("-i",new LinkProcessor()));
parseAndAssertNodeCount(1);
--- 81,85 ----
createParser("<IMG alt=Google height=115 src=\"../goo/title_homepage4.gif\" width=305>","http://www.google.com/test/");
// Register the image scanner
! parser.addScanner(new ImageScanner("-i"));
parseAndAssertNodeCount(1);
***************
*** 101,105 ****
createParser("<IMG alt=Google height=115 src=\"../../goo/title_homepage4.gif\" width=305>","http://www.google.com/test/test/index.html");
// Register the image scanner
! parser.addScanner(new ImageScanner("-i",new LinkProcessor()));
parseAndAssertNodeCount(1);
--- 101,105 ----
createParser("<IMG alt=Google height=115 src=\"../../goo/title_homepage4.gif\" width=305>","http://www.google.com/test/test/index.html");
// Register the image scanner
! parser.addScanner(new ImageScanner("-i"));
parseAndAssertNodeCount(1);
***************
*** 118,122 ****
createParser("<IMG SRC='abcd.jpg'>","http://www.cj.com/");
// Register the image scanner
! parser.addScanner(new ImageScanner("-i",new LinkProcessor()));
parseAndAssertNodeCount(1);
--- 118,122 ----
createParser("<IMG SRC='abcd.jpg'>","http://www.cj.com/");
// Register the image scanner
! parser.addScanner(new ImageScanner("-i"));
parseAndAssertNodeCount(1);
***************
*** 137,141 ****
createParser("<IMG SRC=>","http://www.google.com/test/index.html");
// Register the image scanner
! parser.addScanner(new ImageScanner("-i",new LinkProcessor()));
parseAndAssertNodeCount(1);
--- 137,141 ----
createParser("<IMG SRC=>","http://www.google.com/test/index.html");
// Register the image scanner
! parser.addScanner(new ImageScanner("-i"));
parseAndAssertNodeCount(1);
***************
*** 150,154 ****
createParser(img,"http://www.google.com/test/test/index.html");
// Register the image scanner
! parser.addScanner(new ImageScanner("-i",new LinkProcessor()));
parseAndAssertNodeCount(1);
--- 150,154 ----
createParser(img,"http://www.google.com/test/test/index.html");
// Register the image scanner
! parser.addScanner(new ImageScanner("-i"));
parseAndAssertNodeCount(1);
|