[Htmlparser-cvs] htmlparser/src/org/htmlparser/tests/scannersTests FormScannerTest.java,1.35,1.36 Li
Brought to you by:
derrickoswald
From: <der...@us...> - 2003-10-19 14:07:25
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/scannersTests In directory sc8-pr-cvs1:/tmp/cvs-serv10542/tests/scannersTests Modified Files: FormScannerTest.java LinkScannerTest.java Log Message: Partition Attribute into a base class and PageAttribute class for the Lexer. Fixed the AppletTag.setAppletParams in a cheesy manner. Clear out the released NodeList entry on remove(). Dropped the HTMLTagParserTest tests, because they really weren't relevant any more. Index: FormScannerTest.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/scannersTests/FormScannerTest.java,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** FormScannerTest.java 6 Oct 2003 01:43:28 -0000 1.35 --- FormScannerTest.java 18 Oct 2003 20:50:37 -0000 1.36 *************** *** 131,135 **** String expected = FORM_HTML.substring (0, FORM_HTML.indexOf ("\"do_login.php\"")) ! + "http://www.google.com/test/do_login.php" + FORM_HTML.substring (FORM_HTML.indexOf ("\"do_login.php\"") + 14); assertStringEquals("toHTML",expected,formTag.toHtml()); --- 131,135 ---- String expected = FORM_HTML.substring (0, FORM_HTML.indexOf ("\"do_login.php\"")) ! + "\"http://www.google.com/test/do_login.php\"" + FORM_HTML.substring (FORM_HTML.indexOf ("\"do_login.php\"") + 14); assertStringEquals("toHTML",expected,formTag.toHtml()); Index: LinkScannerTest.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/scannersTests/LinkScannerTest.java,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** LinkScannerTest.java 6 Oct 2003 01:43:28 -0000 1.40 --- LinkScannerTest.java 18 Oct 2003 20:50:37 -0000 1.41 *************** *** 164,169 **** String link = "r/anorth/top.html"; Vector attributes = new Vector (); ! attributes.addElement (new Attribute ("A")); ! attributes.addElement (new Attribute ("HREF", link, (char)0)); Tag tag = new Tag(null, 0, 0, attributes); String url = "c:\\cvs\\html\\binaries\\yahoo.htm"; --- 164,169 ---- String link = "r/anorth/top.html"; Vector attributes = new Vector (); ! attributes.addElement (new Attribute ("A", null)); ! attributes.addElement (new Attribute ("HREF", link)); Tag tag = new Tag(null, 0, 0, attributes); String url = "c:\\cvs\\html\\binaries\\yahoo.htm"; |