You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(10) |
Aug
(30) |
Sep
(15) |
Oct
(26) |
Nov
(12) |
Dec
(17) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(7) |
Feb
(27) |
Mar
(73) |
Apr
(17) |
May
(17) |
Jun
(78) |
Jul
(67) |
Aug
(60) |
Sep
(89) |
Oct
(140) |
Nov
(173) |
Dec
(46) |
2004 |
Jan
(39) |
Feb
(7) |
Mar
(21) |
Apr
(31) |
May
(13) |
Jun
(86) |
Jul
(14) |
Aug
(14) |
Sep
(53) |
Oct
(184) |
Nov
(186) |
Dec
(319) |
2005 |
Jan
(336) |
Feb
(274) |
Mar
(226) |
Apr
(102) |
May
(196) |
Jun
(130) |
Jul
(119) |
Aug
(143) |
Sep
(76) |
Oct
(85) |
Nov
(70) |
Dec
(159) |
2006 |
Jan
(125) |
Feb
(100) |
Mar
(80) |
Apr
(39) |
May
(55) |
Jun
(58) |
Jul
(50) |
Aug
(76) |
Sep
(55) |
Oct
(101) |
Nov
(163) |
Dec
(85) |
2007 |
Jan
(56) |
Feb
(53) |
Mar
(180) |
Apr
(221) |
May
(290) |
Jun
(199) |
Jul
(322) |
Aug
(515) |
Sep
(121) |
Oct
(297) |
Nov
(177) |
Dec
(103) |
2008 |
Jan
(516) |
Feb
(315) |
Mar
(586) |
Apr
(615) |
May
(197) |
Jun
(381) |
Jul
(390) |
Aug
(195) |
Sep
(603) |
Oct
(499) |
Nov
(622) |
Dec
(350) |
2009 |
Jan
(313) |
Feb
(338) |
Mar
(507) |
Apr
(317) |
May
(197) |
Jun
(375) |
Jul
(235) |
Aug
(424) |
Sep
(410) |
Oct
(338) |
Nov
(286) |
Dec
(306) |
2010 |
Jan
(367) |
Feb
(339) |
Mar
(371) |
Apr
(172) |
May
(233) |
Jun
(264) |
Jul
(421) |
Aug
(110) |
Sep
(218) |
Oct
(189) |
Nov
(185) |
Dec
(168) |
2011 |
Jan
(145) |
Feb
(213) |
Mar
(205) |
Apr
(64) |
May
(159) |
Jun
(67) |
Jul
(104) |
Aug
(126) |
Sep
(144) |
Oct
(106) |
Nov
(154) |
Dec
(225) |
2012 |
Jan
(111) |
Feb
(87) |
Mar
(131) |
Apr
(102) |
May
(180) |
Jun
(160) |
Jul
(412) |
Aug
(315) |
Sep
(311) |
Oct
(369) |
Nov
(464) |
Dec
(284) |
2013 |
Jan
(343) |
Feb
(165) |
Mar
(174) |
Apr
(120) |
May
(153) |
Jun
(134) |
Jul
(202) |
Aug
(105) |
Sep
(228) |
Oct
(332) |
Nov
(192) |
Dec
(219) |
2014 |
Jan
(348) |
Feb
(194) |
Mar
(189) |
Apr
(188) |
May
(297) |
Jun
(206) |
Jul
(79) |
Aug
(279) |
Sep
(111) |
Oct
(159) |
Nov
(61) |
Dec
(78) |
2015 |
Jan
(152) |
Feb
(145) |
Mar
(239) |
Apr
(223) |
May
(248) |
Jun
(296) |
Jul
(172) |
Aug
(189) |
Sep
(338) |
Oct
(217) |
Nov
(131) |
Dec
(184) |
2016 |
Jan
(118) |
Feb
(221) |
Mar
(414) |
Apr
(412) |
May
(303) |
Jun
(133) |
Jul
(129) |
Aug
(121) |
Sep
(136) |
Oct
(67) |
Nov
(89) |
Dec
(245) |
2017 |
Jan
(349) |
Feb
(90) |
Mar
(328) |
Apr
(430) |
May
(284) |
Jun
(199) |
Jul
(164) |
Aug
(120) |
Sep
(57) |
Oct
(105) |
Nov
(108) |
Dec
(146) |
2018 |
Jan
(85) |
Feb
(48) |
Mar
(97) |
Apr
(62) |
May
(64) |
Jun
(136) |
Jul
(123) |
Aug
(87) |
Sep
(17) |
Oct
(27) |
Nov
(9) |
Dec
(16) |
2019 |
Jan
(9) |
Feb
(17) |
Mar
(18) |
Apr
(14) |
May
(8) |
Jun
|
Jul
(6) |
Aug
(12) |
Sep
(5) |
Oct
|
Nov
(2) |
Dec
|
2020 |
Jan
(8) |
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
(4) |
Oct
(1) |
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
(2) |
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(4) |
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2023 |
Jan
|
Feb
(6) |
Mar
(9) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <no...@us...> - 2003-09-03 18:56:57
|
Log Message: ----------- Stubbed out Document.open() - patch from Chen Jun Modified Files: -------------- /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/javascript/host: Document.java Revision Data ------------- Index: Document.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/javascript/host/Document.java,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- Document.java 3 Sep 2003 15:55:23 -0000 1.24 +++ Document.java 3 Sep 2003 18:56:56 -0000 1.25 @@ -65,6 +65,7 @@ * @version $Revision$ * @author <a href="mailto:mb...@Ga...">Mike Bowler</a> * @author David K. Taylor + * @author <a href="mailto:che...@us...">Chen Jun</a> */ public final class Document extends HTMLElement { private DocumentAllArray allArray_; @@ -260,6 +261,14 @@ initialize(); } return allArray_; + } + + + /** + * Open document + */ + public void jsFunction_open() { + getLog().debug("Not implemented yet: document.open()"); } |
From: <no...@us...> - 2003-09-03 15:55:30
|
Log Message: ----------- Fixed warnings identified by checkstyle and eclipse 3.0 Modified Files: -------------- /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host: TextareaTest.java DocumentTest.java StyleTest.java SelectTest.java FormTest.java InputTest.java /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html: HtmlSubmitInputTest.java HtmlImageInputTest.java HtmlIsIndexTest.java HtmlResetInputTest.java HtmlButtonTest.java HtmlFrameSetTest.java HtmlSelectTest.java HtmlElementTest.java HtmlButtonInputTest.java HtmlInputTest.java HtmlTextAreaTest.java HtmlOptionTest.java HtmlTableTest.java AttributesTest.java HtmlFormTest.java HtmlPageTest.java HtmlInlineFrameTest.java HtmlAnchorTest.java /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit: ScriptEngine.java TextUtil.java /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit: MainTestSuite.java ScriptEngineTest.java FakeWebConnection.java Base64Test.java SanityCheck.java TextUtilTest.java WebClientTest.java /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript: SimpleScriptableTest.java JavaScriptEngineTest.java /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/html: HtmlPage.java HtmlInput.java /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/javascript/host: Window.java HTMLElement.java Textarea.java Document.java /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/javascript: JavaScriptEngine.java Revision Data ------------- Index: TextareaTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/TextareaTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- TextareaTest.java 10 Jun 2003 11:57:01 -0000 1.2 +++ TextareaTest.java 3 Sep 2003 15:55:23 -0000 1.3 @@ -51,11 +51,18 @@ * @author <a href="mailto:mb...@Ga...">Mike Bowler</a> */ public class TextareaTest extends WebTestCase { + /** + * Create an instance + * @param name The name of the test + */ public TextareaTest( final String name ) { super(name); } + /** + * @throws Exception if the test fails + */ public void testGetValue() throws Exception { final String htmlContent = "<html><head><title>foo</title><script>" Index: DocumentTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/DocumentTest.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- DocumentTest.java 11 Aug 2003 15:24:58 -0000 1.16 +++ DocumentTest.java 3 Sep 2003 15:55:23 -0000 1.17 @@ -63,11 +63,18 @@ * @author Barnaby Court */ public class DocumentTest extends WebTestCase { + /** + * Create an instance + * @param name The name of the test + */ public DocumentTest( final String name ) { super(name); } + /** + * @throws Exception if the test fails + */ public void testFormsAccessor_TwoForms() throws Exception { final String content = "<html><head><title>foo</title><script>\n" @@ -99,6 +106,9 @@ } + /** + * @throws Exception if the test fails + */ public void testFormsAccessor_NoForms() throws Exception { final String content = "<html><head><title>foo</title><script>\n" @@ -124,6 +134,9 @@ } + /** + * @throws Exception if the test fails + */ public void testDocumentWrite_AssignedToVar() throws Exception { final String content = "<html><head><title>foo</title><script>\n" @@ -147,7 +160,9 @@ } - // Regression test + /** + * @throws Exception if the test fails + */ public void testFormArray() throws Exception { final WebClient client = new WebClient(); final FakeWebConnection webConnection = new FakeWebConnection( client ); @@ -186,6 +201,9 @@ } + /** + * @throws Exception if the test fails + */ public void testDocumentLocationHref() throws Exception { final WebClient webClient = new WebClient(); final FakeWebConnection webConnection = new FakeWebConnection( webClient ); @@ -215,6 +233,7 @@ /** * Regression test for bug 742902 + * @throws Exception if the test fails */ public void testDocumentLocation() throws Exception { final WebClient webClient = new WebClient(); @@ -245,6 +264,7 @@ /** * Regression test for RFE 741930 + * @throws Exception if the test fails */ public void testDocumentCreateElement() throws Exception { final WebClient webClient = new WebClient(); @@ -276,6 +296,7 @@ /** * Regression test for RFE 741930 + * @throws Exception if the test fails */ public void testAppendChild() throws Exception { final WebClient webClient = new WebClient(); @@ -313,6 +334,9 @@ } + /** + * @throws Exception if the test fails + */ public void testGetElementById() throws Exception { final WebClient webClient = new WebClient(); final FakeWebConnection webConnection = new FakeWebConnection( webClient ); @@ -343,6 +367,7 @@ /** * Regression test for bug 740665 + * @throws Exception if the test fails */ public void testGetElementById_divId() throws Exception { final WebClient webClient = new WebClient(); @@ -374,6 +399,7 @@ /** * Regression test for bug 740665 + * @throws Exception if the test fails */ public void testGetElementById_scriptId() throws Exception { final WebClient webClient = new WebClient(); @@ -404,6 +430,7 @@ /** * Regression test for bug 740665 + * @throws Exception if the test fails */ public void testGetElementById_scriptType() throws Exception { final WebClient webClient = new WebClient(); @@ -435,6 +462,7 @@ /** * Regression test for bug 740665 + * @throws Exception if the test fails */ public void testGetElementById_scriptSrc() throws Exception { final WebClient webClient = new WebClient(); @@ -469,6 +497,7 @@ /** * Regression test for parentNode with nested elements + * @throws Exception if the test fails */ public void testParentNode_Nested() throws Exception { final WebClient webClient = new WebClient(); @@ -501,6 +530,7 @@ /** * Regression test for parentNode of document + * @throws Exception if the test fails */ public void testParentNode_Document() throws Exception { final WebClient webClient = new WebClient(); @@ -531,6 +561,7 @@ /** * Regression test for parentNode and createElement + * @throws Exception if the test fails */ public void testParentNode_CreateElement() throws Exception { final WebClient webClient = new WebClient(); @@ -562,6 +593,7 @@ /** * Regression test for parentNode and appendChild + * @throws Exception if the test fails */ public void testParentNode_AppendChild() throws Exception { final WebClient webClient = new WebClient(); @@ -594,6 +626,9 @@ } + /** + * @throws Exception if the test fails + */ public void testAllProperty_KeyByName() throws Exception { final WebClient webClient = new WebClient(); final FakeWebConnection webConnection = new FakeWebConnection( webClient ); @@ -628,6 +663,7 @@ /** * Regression test for bug 707750 + * @throws Exception if the test fails */ public void testAllProperty_CalledDuringPageLoad() throws Exception { final WebClient webClient = new WebClient(); @@ -656,6 +692,9 @@ } + /** + * @throws Exception if the test fails + */ public void testDocumentWrite() throws Exception { final WebClient webClient = new WebClient(); final FakeWebConnection webConnection = new FakeWebConnection( webClient ); @@ -682,6 +721,7 @@ /** * Regression test for bug 743241 + * @throws Exception if the test fails */ public void testDocumentWrite_LoadScript() throws Exception { final WebClient webClient = new WebClient(); @@ -713,6 +753,7 @@ /** * Regression test for bug 715379 + * @throws Exception if the test fails */ public void testDocumentWrite_script() throws Exception { final WebClient webClient = new WebClient(); @@ -761,6 +802,9 @@ } + /** + * @throws Exception if the test fails + */ public void testGetReferrer() throws Exception { final WebClient webClient = new WebClient(); final FakeWebConnection webConnection = new FakeWebConnection( webClient ); @@ -784,6 +828,9 @@ } + /** + * @throws Exception if the test fails + */ public void testGetReferrer_NoneSpecified() throws Exception { final WebClient webClient = new WebClient(); final FakeWebConnection webConnection = new FakeWebConnection( webClient ); @@ -807,6 +854,9 @@ } + /** + * @throws Exception if the test fails + */ public void testGetURL() throws Exception { final WebClient webClient = new WebClient(); final FakeWebConnection webConnection = new FakeWebConnection( webClient ); @@ -830,6 +880,9 @@ } + /** + * @throws Exception if the test fails + */ public void testGetElementsByTagName() throws Exception { final WebClient webClient = new WebClient(); final FakeWebConnection webConnection = new FakeWebConnection( webClient ); @@ -863,6 +916,7 @@ /** * Regression test for bug 740636 + * @throws Exception if the test fails */ public void testGetElementsByTagName_CaseInsensitive() throws Exception { final WebClient webClient = new WebClient(); @@ -897,6 +951,7 @@ /** * Regression test for bug 740605 + * @throws Exception if the test fails */ public void testGetElementsByTagName_Inline() throws Exception { final WebClient webClient = new WebClient(); @@ -922,6 +977,7 @@ /** * Regression test for bug 740605 + * @throws Exception if the test fails */ public void testGetElementsByTagName_LoadScript() throws Exception { final WebClient webClient = new WebClient(); @@ -948,6 +1004,9 @@ } + /** + * @throws Exception if the test fails + */ public void testDocumentAll_IndexByInt() throws Exception { final WebClient webClient = new WebClient(); final FakeWebConnection webConnection = new FakeWebConnection( webClient ); @@ -979,6 +1038,9 @@ } + /** + * @throws Exception if the test fails + */ public void testDocumentAll_tags() throws Exception { final WebClient webClient = new WebClient(); final FakeWebConnection webConnection = new FakeWebConnection( webClient ); @@ -1013,6 +1075,9 @@ } + /** + * @throws Exception if the test fails + */ public void testCookie_read() throws Exception { final WebClient webClient = new WebClient(); final FakeWebConnection webConnection = new FakeWebConnection( webClient ); Index: StyleTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/StyleTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- StyleTest.java 10 Jun 2003 11:57:01 -0000 1.3 +++ StyleTest.java 3 Sep 2003 15:55:23 -0000 1.4 @@ -55,11 +55,19 @@ * @author <a href="mailto:mb...@Ga...">Mike Bowler</a> */ public class StyleTest extends WebTestCase { + + /** + * Create an instance + * @param name The name of the test + */ public StyleTest( final String name ) { super(name); } + /** + * @throws Exception if the test fails + */ public void testStyle_OneCssAttribute() throws Exception { final WebClient client = new WebClient(); final FakeWebConnection webConnection = new FakeWebConnection( client ); @@ -90,6 +98,9 @@ } + /** + * @throws Exception if the test fails + */ public void testStyle_MultipleCssAttributes() throws Exception { final WebClient client = new WebClient(); final FakeWebConnection webConnection = new FakeWebConnection( client ); Index: SelectTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/SelectTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- SelectTest.java 10 Jun 2003 11:57:01 -0000 1.2 +++ SelectTest.java 3 Sep 2003 15:55:23 -0000 1.3 @@ -51,11 +51,18 @@ * @author <a href="mailto:mb...@Ga...">Mike Bowler</a> */ public class SelectTest extends WebTestCase { + /** + * Create an instance + * @param name The name of the test + */ public SelectTest( final String name ) { super(name); } + /** + * @throws Exception if the test fails + */ public void testGetSelectedIndex() throws Exception { final String content = "<html><head><title>foo</title><script>" @@ -85,6 +92,9 @@ } + /** + * @throws Exception if the test fails + */ public void testGetOptions() throws Exception { final String content = "<html><head><title>foo</title><script>" Index: FormTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/FormTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- FormTest.java 10 Jun 2003 11:57:01 -0000 1.2 +++ FormTest.java 3 Sep 2003 15:55:23 -0000 1.3 @@ -57,11 +57,18 @@ * @author <a href="mailto:mb...@Ga...">Mike Bowler</a> */ public class FormTest extends WebTestCase { + /** + * Create an instance + * @param name The name of the test + */ public FormTest( final String name ) { super(name); } + /** + * @throws Exception if the test fails + */ public void testElementsAccessor() throws Exception { final String content = "<html><head><title>foo</title><script>\n" @@ -116,6 +123,9 @@ } + /** + * @throws Exception if the test fails + */ public void testRadioButtonArray() throws Exception { final String content = "<html><head><title>foo</title><script>\n" @@ -152,6 +162,7 @@ * If there is only one radio button with a specified name then that radio * button will be returned for the name, not an array of radio buttons. Test * this. + * @throws Exception if the test fails */ public void testRadioButton_OnlyOne() throws Exception { final String content @@ -178,6 +189,9 @@ } + /** + * @throws Exception if the test fails + */ public void testActionProperty() throws Exception { final String jsProperty = "action"; final String htmlProperty = "action"; @@ -189,6 +203,9 @@ } + /** + * @throws Exception if the test fails + */ public void testEncodingProperty() throws Exception { final String jsProperty = "encoding"; final String htmlProperty = "enctype"; @@ -200,6 +217,9 @@ } + /** + * @throws Exception if the test fails + */ public void testMethodProperty() throws Exception { final String jsProperty = "method"; final String htmlProperty = "method"; @@ -211,6 +231,9 @@ } + /** + * @throws Exception if the test fails + */ public void testTargetProperty() throws Exception { final String jsProperty = "target"; final String htmlProperty = "target"; @@ -256,6 +279,9 @@ } + /** + * @throws Exception if the test fails + */ public void testFormSubmit() throws Exception { final WebClient client = new WebClient(); final FakeWebConnection webConnection = new FakeWebConnection( client ); @@ -288,11 +314,17 @@ } + /** + * @throws Exception if the test fails + */ public void testInputNamedId() throws Exception { doTestInputWithName("id"); } + /** + * @throws Exception if the test fails + */ public void testInputNamedAction() throws Exception { doTestInputWithName("action"); } @@ -334,6 +366,7 @@ /** * Regression test that used to blow up on page load + * @throws Exception if the test fails */ public void testAccessingRadioButtonArrayByName_Regression() throws Exception { final WebClient client = new WebClient(); @@ -375,6 +408,7 @@ /** * Test for a bug that appeared when visiting mail.yahoo.com. Setting the value of one input * seems to blow away the other input. + * @throws Exception if the test fails */ public void testFindInputWithoutTypeDefined() throws Exception { final String content Index: InputTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/InputTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- InputTest.java 10 Jun 2003 11:57:01 -0000 1.2 +++ InputTest.java 3 Sep 2003 15:55:23 -0000 1.3 @@ -61,11 +61,18 @@ * @author <a href="mailto:mb...@Ga...">Mike Bowler</a> */ public class InputTest extends WebTestCase { + /** + * Create an instance + * @param name The name of the test. + */ public InputTest( final String name ) { super(name); } + /** + * @throws Exception if the test fails + */ public void testStandardProperties_Text() throws Exception { final String content = "<html><head><title>foo</title><script>" @@ -96,6 +103,9 @@ } + /** + * @throws Exception if the test fails + */ public void testTextProperties() throws Exception { final String content = "<html><head><title>foo</title><script>" @@ -154,6 +164,9 @@ } + /** + * @throws Exception if the test fails + */ public void testCheckedAttribute_Checkbox() throws Exception { final String content = "<html><head><title>foo</title><script>" @@ -185,6 +198,9 @@ } + /** + * @throws Exception if the test fails + */ public void testCheckedAttribute_Radio() throws Exception { final String content = "<html><head><title>foo</title><script>" @@ -231,6 +247,9 @@ } + /** + * @throws Exception if the test fails + */ public void testDisabledAttribute() throws Exception { final String content = "<html><head><title>foo</title><script>" @@ -281,6 +300,9 @@ } + /** + * @throws Exception if the test fails + */ public void testInputValue() throws Exception { final String htmlContent = "<html><head><title>foo</title><script>" Index: ScriptEngine.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/ScriptEngine.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- ScriptEngine.java 10 Jun 2003 11:56:56 -0000 1.11 +++ ScriptEngine.java 3 Sep 2003 15:55:23 -0000 1.12 @@ -116,7 +116,7 @@ * @param javaScriptFunction The function to call. * @param thisObject The this object for class method calls. * @param args The list of arguments to pass to the function. - * @param htmlElement The html element that will act as the context. + * @param htmlElementScope The html element that will act as the context. * @return The result of the function call. */ public abstract Object callFunction( Index: TextUtil.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/TextUtil.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- TextUtil.java 19 Jul 2003 13:49:47 -0000 1.10 +++ TextUtil.java 3 Sep 2003 15:55:23 -0000 1.11 @@ -97,7 +97,9 @@ /** * Convert a string into an input stream. * @param content The string + * @param encoding The encoding to use when converting the string to a stream. * @return The resulting input stream. + * @throws UnsupportedEncodingException If the encoding is not supported. */ public static InputStream toInputStream( final String content, Index: MainTestSuite.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/MainTestSuite.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- MainTestSuite.java 3 Sep 2003 12:33:04 -0000 1.3 +++ MainTestSuite.java 3 Sep 2003 15:55:23 -0000 1.4 @@ -86,7 +86,7 @@ System.getProperties().put(prefix+"org.apache.commons.httpclient.HttpState", "info"); System.getProperties().put(prefix+"org.apache.commons.httpclient.ResponseInputStream", "info"); System.getProperties().put(prefix+"org.apache.commons.httpclient.cookie.CookieSpec", "info"); - System.getProperties().put(prefix+"org.apache.commons.httpclient.methods.GetMethod", "info"); - System.getProperties().put(prefix+"org.apache.commons.httpclient.HttpMethodBase", "info"); + System.getProperties().put(prefix+"org.apache.commons.httpclient.methods.GetMethod", "info"); + System.getProperties().put(prefix+"org.apache.commons.httpclient.HttpMethodBase", "info"); } } Index: ScriptEngineTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/ScriptEngineTest.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- ScriptEngineTest.java 10 Jun 2003 11:57:00 -0000 1.4 +++ ScriptEngineTest.java 3 Sep 2003 15:55:23 -0000 1.5 @@ -53,6 +53,10 @@ * @author <a href="mailto:mb...@Ga...">Mike Bowler</a> */ public class ScriptEngineTest extends WebTestCase { + /** + * Create an instance + * @param name The name of the test + */ public ScriptEngineTest( final String name ) { super(name); } Index: FakeWebConnection.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/FakeWebConnection.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- FakeWebConnection.java 16 Jul 2003 20:11:20 -0000 1.5 +++ FakeWebConnection.java 3 Sep 2003 15:55:23 -0000 1.6 @@ -104,7 +104,7 @@ /** * Create an instance * - * @param webClient + * @param webClient The web client */ public FakeWebConnection( final WebClient webClient ) { super( webClient ); @@ -112,18 +112,19 @@ /** - * Submit a request to the processor + * Submit a request and retrieve a response * - * @param url The url - * @param method The method to use - * @param parameters any parameters - * @return The response as an input stream + * @param url The url of the server + * @param method The submit method. Ie SubmitMethod.GET + * @param parameters Any parameters + * @param requestHeaders Any headers that need to be put into the request. + * @return See above */ public WebResponse getResponse( final URL url, final SubmitMethod method, final List parameters, - final Map requestParameters ) { + final Map requestHeaders ) { lastMethod_ = method; lastParameters_ = parameters; @@ -245,6 +246,7 @@ /** * Set the default response entry to use the specified content with default values. + * @param content The new content */ public void setContent( final String content ) { setDefaultResponse(content, 200, "OK", "text/html"); Index: Base64Test.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/Base64Test.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Base64Test.java 10 Jun 2003 11:57:00 -0000 1.3 +++ Base64Test.java 3 Sep 2003 15:55:23 -0000 1.4 @@ -78,6 +78,7 @@ /** * Test {@link Base64.encode(String,String)} with a null string. + * @throws Exception if the test fails */ public void testEncodeStringEncoding_NullString() throws Exception { @@ -93,6 +94,7 @@ /** * Test {@link Base64.encode(String,String)} with a null encoding. + * @throws Exception if the test fails */ public void testEncodeStringEncoding_NullEncoding() throws Exception { @@ -108,6 +110,7 @@ /** * Test {@link Base64.encode(String)} with a null string. + * @throws Exception if the test fails */ public void testEncodeString_Null() throws Exception { @@ -123,6 +126,7 @@ /** * Test {@link Base64.encode(String,String)} with a null encoding. + * @throws Exception if the test fails */ public void testEncodeBytes_NullArray() throws Exception { Index: SanityCheck.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/SanityCheck.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- SanityCheck.java 3 Sep 2003 12:19:28 -0000 1.6 +++ SanityCheck.java 3 Sep 2003 15:55:23 -0000 1.7 @@ -85,24 +85,25 @@ } - /** - * Test against a live server: Yahoo - * @throws Exception If something goes wrong. - */ - public void testYahoo() throws Exception { - final WebClient webClient = new WebClient(BROWSER_VERSION); - assertInstanceOf( webClient.getPage( new URL( "http://yahoo.com/" ) ), HtmlPage.class ); - } + /** + * Test against a live server: Yahoo + * @throws Exception If something goes wrong. + */ + public void testYahoo() throws Exception { + final WebClient webClient = new WebClient(BROWSER_VERSION); + assertInstanceOf( webClient.getPage( new URL( "http://yahoo.com/" ) ), HtmlPage.class ); + } + + /** + * Test against a live server: Yahoo + * @throws Exception If something goes wrong. + */ + public void testYahoo_Spanish() throws Exception { + final WebClient webClient = new WebClient(BROWSER_VERSION); + assertInstanceOf( + webClient.getPage( new URL( "http://edit.europe.yahoo.com/config/mail?.intl=es" ) ), HtmlPage.class ); + } - /** - * Test against a live server: Yahoo - * @throws Exception If something goes wrong. - */ - public void testYahoo_Spanish() throws Exception { - final WebClient webClient = new WebClient(BROWSER_VERSION); - assertInstanceOf( webClient.getPage( new URL( "http://edit.europe.yahoo.com/config/mail?.intl=es" ) ), HtmlPage.class ); - } - /** * Test against a live server: IBM Index: TextUtilTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/TextUtilTest.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- TextUtilTest.java 19 Jul 2003 13:49:47 -0000 1.4 +++ TextUtilTest.java 3 Sep 2003 15:55:23 -0000 1.5 @@ -135,6 +135,9 @@ } } + /** + * @throws Exception if the test fails + */ public void testToInputStream_null() throws Exception { try { TextUtil.toInputStream(null); @@ -146,6 +149,9 @@ } + /** + * @throws Exception if the test fails + */ public void testToInputStream() throws Exception { final String[][] data = { {"", null}, Index: WebClientTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/WebClientTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- WebClientTest.java 11 Aug 2003 15:24:57 -0000 1.3 +++ WebClientTest.java 3 Sep 2003 15:55:23 -0000 1.4 @@ -420,11 +420,24 @@ new URL("http://page1"), page1Content, 200, "OK", "text/html", Collections.EMPTY_LIST ); client.setWebConnection( webConnection ); + /** A PageCreator that collects data */ class CollectingPageCreator implements PageCreator { private final List list; + /** + * Create an instance + * @param list The list that will contain the data + */ public CollectingPageCreator( final List list ) { this.list = list; } + /** + * Create a page + * @param webClient The web client + * @param webResponse The web response + * @param webWindow The web window + * @return The new page + * @throws IOException If an IO problem occurs + */ public Page createPage( final WebClient webClient, final WebResponse webResponse, Index: SimpleScriptableTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/SimpleScriptableTest.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- SimpleScriptableTest.java 18 Jun 2003 22:13:04 -0000 1.5 +++ SimpleScriptableTest.java 3 Sep 2003 15:55:23 -0000 1.6 @@ -61,11 +61,18 @@ * @author <a href="mailto:Bar...@us...">Barnaby Court</a> */ public class SimpleScriptableTest extends WebTestCase { + /** + * Create an instance + * @param name The name of the test + */ public SimpleScriptableTest( final String name ) { super(name); } + /** + * @throws Exception if the test fails + */ public void testCallInheritedFunction() throws Exception { final WebClient client = new WebClient(); final FakeWebConnection webConnection = new FakeWebConnection( client ); @@ -99,6 +106,8 @@ } + /** + */ public void testHtmlJavaScriptMapping_AllJavaScriptClassesArePresent() { final Map map = SimpleScriptable.getHtmlJavaScriptMapping(); final String directoryName = "../../src/java/com/gargoylesoftware/htmlunit/javascript/host"; Index: JavaScriptEngineTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/JavaScriptEngineTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- JavaScriptEngineTest.java 10 Jun 2003 11:57:01 -0000 1.2 +++ JavaScriptEngineTest.java 3 Sep 2003 15:55:23 -0000 1.3 @@ -64,11 +64,18 @@ * @author Noboru Sinohara */ public class JavaScriptEngineTest extends WebTestCase { + /** + * Create an instance + * @param name The name of the test + */ public JavaScriptEngineTest( final String name ) { super(name); } + /** + * @throws Exception if the test fails + */ public void testSetJavascriptEnabled_false() throws Exception { final WebClient client = new WebClient(); client.setJavaScriptEnabled(false); @@ -98,6 +105,7 @@ /** * Try to set the value of a text input field. + * @throws Exception if the test fails */ public void testSetInputValue() throws Exception { final String content @@ -120,6 +128,9 @@ } + /** + * @throws Exception if the test fails + */ public void testAlert() throws Exception { final String content = "<html><head><title>foo</title><script>" @@ -142,6 +153,9 @@ } + /** + * @throws Exception if the test fails + */ public void testExternalScript() throws Exception { final WebClient client = new WebClient(); @@ -180,6 +194,9 @@ } + /** + * @throws Exception if the test fails + */ public void testExternalScriptEncoding() throws Exception { final WebClient client = new WebClient(); final FakeWebConnection webConnection = new FakeWebConnection( client ); @@ -279,6 +296,7 @@ /** * Set value on input expects a string. If you pass in a value that isn't a string * this used to blow up. + * @throws Exception if the test fails */ public void testSetValuesThatAreNotStrings() throws Exception { final String content @@ -305,6 +323,9 @@ } + /** + * @throws Exception if the test fails + */ public void testReferencingVariablesFromOneScriptToAnother_Regression() throws Exception { final WebClient client = new WebClient(); @@ -340,6 +361,9 @@ } + /** + * @throws Exception if the test fails + */ public void testJavaScriptUrl() throws Exception { final WebClient client = new WebClient(); @@ -375,6 +399,9 @@ } + /** + * @throws Exception if the test fails + */ public void testJavaScriptWrappedInHtmlComments() throws Exception { final WebClient client = new WebClient(); @@ -400,6 +427,9 @@ } + /** + * @throws Exception if the test fails + */ public void testJavaScriptWrappedInHtmlComments_commentOnOpeningLine() throws Exception { final WebClient client = new WebClient(); @@ -427,6 +457,7 @@ /** * When using the syntax this.something in an onclick handler, "this" must represent * the object being clicked, not the window. Regression test. + * @throws Exception if the test fails */ public void testThisDotInOnClick() throws Exception { @@ -458,6 +489,9 @@ } + /** + * @throws Exception if the test fails + */ public void testFunctionDefinedInExternalFile_CalledFromInlineScript() throws Exception { final WebClient client = new WebClient(); @@ -491,6 +525,7 @@ /** * Test case for bug 707134. Currently I am unable to reproduce the problem. + * @throws Exception if the test fails */ public void testFunctionDefinedInSameFile() throws Exception { Index: Window.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/javascript/host/Window.java,v retrieving revision 1.22 retrieving revision 1.23 diff -u -d -r1.22 -r1.23 --- Window.java 18 Jul 2003 13:01:06 -0000 1.22 +++ Window.java 3 Sep 2003 15:55:23 -0000 1.23 @@ -377,17 +377,17 @@ * @return the value of window.parent */ public SimpleScriptable jsGet_parent() { - final SimpleScriptable parent; + final SimpleScriptable parentProperty; if( webWindow_ instanceof TopLevelWindow ) { - parent = this; + parentProperty = this; } else { final WebWindow parentWebWindow = ((HtmlElement)webWindow_).getPage().getEnclosingWindow(); - parent = (SimpleScriptable)parentWebWindow.getScriptObject(); + parentProperty = (SimpleScriptable)parentWebWindow.getScriptObject(); } - return parent; + return parentProperty; } @@ -519,6 +519,10 @@ return ""; } + /** + * Return the value of the name property + * @return The name + */ public String jsGet_name() { return webWindow_.getName(); } Index: HTMLElement.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/javascript/host/HTMLElement.java,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- HTMLElement.java 16 Jul 2003 12:17:20 -0000 1.13 +++ HTMLElement.java 3 Sep 2003 15:55:23 -0000 1.14 @@ -137,6 +137,8 @@ /** * Return the value of the named attribute. + * @param name The name of the variable + * @param start The scriptable to get the variable from. * @return The attribute value */ public Object get( String name, Scriptable start ) { @@ -199,7 +201,8 @@ } if ( ( parentXmlNode instanceof Element ) == false ) { if( parentXmlNode instanceof HTMLDocumentImpl == false ) { - throw new IllegalStateException( "Parent XML node is not an Element. Only Elements are currently supported. Parent class: " + throw new IllegalStateException( + "Parent XML node is not an Element. Only Elements are currently supported. Parent class: " + parentXmlNode.getClass() ); } return null; Index: Textarea.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/javascript/host/Textarea.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- Textarea.java 10 Jun 2003 11:56:59 -0000 1.6 +++ Textarea.java 3 Sep 2003 15:55:23 -0000 1.7 @@ -71,11 +71,19 @@ } + /** + * Return the value of the "value" attribute + * @return The value of the "value" attribute + */ public String jsGet_value() { return ((HtmlTextArea)getHtmlElementOrDie()).getText(); } + /** + * Set the value of the "value" attribute + * @param value The new value + */ public void jsSet_value( final String value ) { ((HtmlTextArea)getHtmlElementOrDie()).setText(value); } Index: Document.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/javascript/host/Document.java,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- Document.java 16 Jul 2003 20:11:21 -0000 1.23 +++ Document.java 3 Sep 2003 15:55:23 -0000 1.24 @@ -274,6 +274,7 @@ /** * Create a new HTML element with the given tag name. * + * @param tagName The tag name * @return the new HTML element, or NOT_FOUND if the tag is not supported. */ public Object jsFunction_createElement( final String tagName ) { Index: HtmlSubmitInputTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlSubmitInputTest.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- HtmlSubmitInputTest.java 23 Jul 2003 17:07:55 -0000 1.6 +++ HtmlSubmitInputTest.java 3 Sep 2003 15:55:23 -0000 1.7 @@ -66,6 +66,9 @@ } + /** + * @throws Exception if the test fails + */ public void testSubmit() throws Exception { final String htmlContent = "<html><head><title>foo</title></head><body>" @@ -95,6 +98,9 @@ } + /** + * @throws Exception if the test fails + */ public void testClick_onClick() throws Exception { final String htmlContent = "<html><head><title>foo</title></head><body>" @@ -124,6 +130,9 @@ } + /** + * @throws Exception if the test fails + */ public void testClick_onClick_JavascriptReturnsTrue() throws Exception { final String firstContent Index: HtmlImageInputTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlImageInputTest.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- HtmlImageInputTest.java 27 Jul 2003 16:51:46 -0000 1.4 +++ HtmlImageInputTest.java 3 Sep 2003 15:55:23 -0000 1.5 @@ -64,6 +64,9 @@ } + /** + * @throws Exception if the test fails + */ public void testClick_NoPosition() throws Exception { final String htmlContent = "<html><head><title>foo</title></head><body>" @@ -92,6 +95,9 @@ } + /** + * @throws Exception if the test fails + */ public void testClick_WithPosition() throws Exception { final String htmlContent = "<html><head><title>foo</title></head><body>" Index: HtmlIsIndexTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlIsIndexTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- HtmlIsIndexTest.java 10 Jun 2003 11:57:01 -0000 1.3 +++ HtmlIsIndexTest.java 3 Sep 2003 15:55:23 -0000 1.4 @@ -65,6 +65,9 @@ } + /** + * @throws Exception if the test fails + */ public void testFormSubmission() throws Exception { final String htmlContent Index: HtmlResetInputTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlResetInputTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- HtmlResetInputTest.java 10 Jun 2003 11:57:01 -0000 1.3 +++ HtmlResetInputTest.java 3 Sep 2003 15:55:23 -0000 1.4 @@ -61,6 +61,9 @@ } + /** + * @throws Exception if the test fails + */ public void testReset() throws Exception { final String htmlContent = "<html><head><title>foo</title></head><body>" Index: HtmlButtonTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlButtonTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- HtmlButtonTest.java 10 Jun 2003 11:57:00 -0000 1.3 +++ HtmlButtonTest.java 3 Sep 2003 15:55:23 -0000 1.4 @@ -65,6 +65,9 @@ } + /** + * @throws Exception if the test fails + */ public void testClick_onClick() throws Exception { final String htmlContent = "<html><head><title>foo</title></head><body>" Index: HtmlFrameSetTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlFrameSetTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- HtmlFrameSetTest.java 10 Jun 2003 11:57:00 -0000 1.3 +++ HtmlFrameSetTest.java 3 Sep 2003 15:55:23 -0000 1.4 @@ -63,6 +63,9 @@ } + /** + * @throws Exception if the test fails + */ public void testLoadingFrameSet() throws Exception { @@ -107,6 +110,9 @@ } + /** + * @throws Exception if the test fails + */ public void testLoadingIFrames() throws Exception { Index: HtmlSelectTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlSelectTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- HtmlSelectTest.java 10 Jun 2003 11:57:01 -0000 1.3 +++ HtmlSelectTest.java 3 Sep 2003 15:55:23 -0000 1.4 @@ -360,6 +360,9 @@ } + /** + * @throws Exception if the test fails + */ public void testGetAllOptions() throws Exception { @@ -396,6 +399,9 @@ } + /** + * @throws Exception if the test fails + */ public void testSelect_OptionMultiple_NoValueOnAttribute() throws Exception { final String htmlContent @@ -422,6 +428,9 @@ } + /** + * @throws Exception if the test fails + */ public void testGetOptionByValue_TwoOptionsWithSameValue() throws Exception { final String htmlContent @@ -452,6 +461,9 @@ } + /** + * @throws Exception if the test fails + */ public void testSelect_SetSelected_OnChangeHandler() throws Exception { Index: HtmlElementTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlElementTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- HtmlElementTest.java 10 Jun 2003 11:57:00 -0000 1.3 +++ HtmlElementTest.java 3 Sep 2003 15:55:23 -0000 1.4 @@ -61,6 +61,9 @@ } + /** + * @throws Exception if the test fails + */ public void testGetEnclosingForm() throws Exception { @@ -85,6 +88,9 @@ } + /** + * @throws Exception if the test fails + */ public void testAsText_WithComments() throws Exception { final String htmlContent = "<html><head><title>foo</title></head><body>" @@ -104,6 +110,8 @@ } + /** + */ public void testConstants() { assertEquals( "", HtmlElement.ATTRIBUTE_NOT_DEFINED ); assertEquals( "", HtmlElement.ATTRIBUTE_VALUE_EMPTY ); Index: HtmlButtonInputTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlButtonInputTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- HtmlButtonInputTest.java 10 Jun 2003 11:57:00 -0000 1.3 +++ HtmlButtonInputTest.java 3 Sep 2003 15:55:23 -0000 1.4 @@ -65,6 +65,9 @@ } + /** + * @throws Exception if the test fails + */ public void testClick_onClick() throws Exception { final String htmlContent = "<html><head><title>foo</title></head><body>" Index: HtmlInputTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlInputTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- HtmlInputTest.java 10 Jun 2003 11:57:00 -0000 1.3 +++ HtmlInputTest.java 3 Sep 2003 15:55:23 -0000 1.4 @@ -111,6 +111,9 @@ } + /** + * @throws Exception if the test fails + */ public void testSetChecked_CheckBox() throws Exception { @@ -141,6 +144,9 @@ } + /** + * @throws Exception if the test fails + */ public void testGetChecked_RadioButton() throws Exception { @@ -170,6 +176,9 @@ } + /** + * @throws Exception if the test fails + */ public void testOnChangeHandler() throws Exception { final String htmlContent @@ -198,6 +207,9 @@ } + /** + * @throws Exception if the test fails + */ public void testCheckboxDefaultValue() throws Exception { final String htmlContent Index: HtmlTextAreaTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlTextAreaTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- HtmlTextAreaTest.java 10 Jun 2003 11:57:01 -0000 1.3 +++ HtmlTextAreaTest.java 3 Sep 2003 15:55:23 -0000 1.4 @@ -65,6 +65,9 @@ } + /** + * @throws Exception if the test fails + */ public void testFormSubmission_OriginalData() throws Exception { final String htmlContent @@ -99,6 +102,9 @@ } + /** + * @throws Exception if the test fails + */ public void testFormSubmission_NewValue() throws Exception { final String htmlContent Index: HtmlOptionTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlOptionTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- HtmlOptionTest.java 10 Jun 2003 11:57:01 -0000 1.3 +++ HtmlOptionTest.java 3 Sep 2003 15:55:23 -0000 1.4 @@ -51,11 +51,18 @@ * @author <a href="mailto:mb...@Ga...">Mike Bowler</a> */ public class HtmlOptionTest extends WebTestCase { + /** + * Create an instance + * @param name The name of the test + */ public HtmlOptionTest( final String name ) { super(name); } + /** + * @throws Exception if the test fails + */ public void testSelect() throws Exception { final String htmlContent Index: HtmlTableTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlTableTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- HtmlTableTest.java 10 Jun 2003 11:57:01 -0000 1.3 +++ HtmlTableTest.java 3 Sep 2003 15:55:23 -0000 1.4 @@ -136,6 +136,9 @@ } + /** + * @throws Exception if the test fails + */ public void testGetTableRows() throws Exception { @@ -173,6 +176,9 @@ } + /** + * @throws Exception if the test fails + */ public void testGetTableRows_WithHeadBodyFoot() throws Exception { @@ -216,6 +222,9 @@ } + /** + * @throws Exception if the test fails + */ public void testRowGroupings_AllDefined() throws Exception { @@ -255,6 +264,9 @@ } + /** + * @throws Exception if the test fails + */ public void testRowGroupings_NoneDefined() throws Exception { @@ -286,6 +298,9 @@ } + /** + * @throws Exception if the test fails + */ public void testGetCaptionText() throws Exception { Index: AttributesTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/AttributesTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- AttributesTest.java 11 Aug 2003 15:24:58 -0000 1.3 +++ AttributesTest.java 3 Sep 2003 15:55:23 -0000 1.4 @@ -350,10 +350,4 @@ new URL( "http://first" ), SubmitMethod.POST, Collections.EMPTY_LIST ); } - - - public static void main( final String args[] ) { - junit.textui.TestRunner.main( new String[]{ - "com.gargoylesoftware.htmlunit.html.AttributesTest" - } ); - }} \ No newline at end of file +} \ No newline at end of file Index: HtmlFormTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlFormTest.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- HtmlFormTest.java 11 Aug 2003 15:24:58 -0000 1.4 +++ HtmlFormTest.java 3 Sep 2003 15:55:23 -0000 1.5 @@ -199,6 +199,9 @@ } + /** + * @throws Exception if the test fails + */ public void testSubmit_String() throws Exception { final String htmlContent @@ -222,6 +225,9 @@ } + /** + * @throws Exception if the test fails + */ public void testSubmit_ExtraParameters() throws Exception { final String htmlContent @@ -253,6 +259,9 @@ } + /** + * @throws Exception if the test fails + */ public void testSubmit_onSubmitHandler() throws Exception { @@ -287,6 +296,9 @@ } + /** + * @throws Exception if the test fails + */ public void testSubmit_onSubmitHandler_returnFalse() throws Exception { @@ -322,6 +334,9 @@ } + /** + * @throws Exception if the test fails + */ public void testSubmit_onSubmitHandler_javascriptDisabled() throws Exception { final String firstContent @@ -358,6 +373,9 @@ } + /** + * @throws Exception if the test fails + */ public void testSubmit_javascriptAction() throws Exception { final String firstContent @@ -391,6 +409,9 @@ } + /** + * @throws Exception if the test fails + */ public void testSubmit_javascriptAction_javascriptDisabled() throws Exception { final String firstContent @@ -423,6 +444,7 @@ /** * Regression test for a bug that caused a NullPointer exception to be thrown during submit. + * @throws Exception if the test fails */ public void testSubmitRadioButton() throws Exception { final String firstContent @@ -451,6 +473,9 @@ } + /** + * @throws Exception if the test fails + */ public void testReset_onResetHandler() throws Exception { @@ -490,6 +515,7 @@ * Simulate a bug report where an anchor contained javascript that caused a form submit. * According to the bug report, the form would be submitted even though the onsubmit * handler would return false. This wasn't reproducible but I added a test for it anyway. + * @throws Exception if the test fails */ public void testSubmit_AnchorCausesSubmit_onSubmitHandler_returnFalse() throws Exception { @@ -528,6 +554,9 @@ } + /** + * @throws Exception if the test fails + */ public void testSubmit_NoDefaultValue() throws Exception { final String htmlContent @@ -559,6 +588,9 @@ } + /** + * @throws Exception if the test fails + */ public void testGetInputByName_WithinNoScriptTags() throws Exception { final String htmlContent = "<html><head><title>foo</title></head><body>" @@ -584,6 +616,9 @@ } + /** + * @throws Exception if the test fails + */ public void testForSubmit_TwoInputsWithSameName() throws Exception { final String firstContent = "<html><head><title>First</title></head><body>" Index: HtmlPageTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlPageTest.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- HtmlPageTest.java 3 Sep 2003 12:49:36 -0000 1.8 +++ HtmlPageTest.java 3 Sep 2003 15:55:23 -0000 1.9 @@ -63,7 +63,7 @@ /** * Create an instance * - * @param name + * @param name The name of the test */ public HtmlPageTest( final String name ) { super( name ); @@ -71,7 +71,7 @@ /** - * @exception Exception + * @exception Exception If the test fails */ public void testConstructor() throws Exception { @@ -102,7 +102,7 @@ /** - * @exception Exception + * @throws Exception if the test fails */ public void testGetInputByName() throws Exception { @@ -138,7 +138,7 @@ /** - * @exception Exception + * @throws Exception if the test fails */ public void testFormSubmit() throws Exception { @@ -190,7 +190,7 @@ /** * Test getHtmlElement() for all elements that can be loaded * - * @exception Exception + * @throws Exception if the test fails */ public void testGetHtmlElement() throws Exception { @@ -281,6 +281,9 @@ } + /** + * @throws Exception if the test fails + */ public void testGetTabbableElements_None() throws Exception { @@ -305,6 +308,9 @@ } + /** + * @throws Exception if the test fails + */ public void testGetTabbableElements_OneEnabled_OneDisabled() throws Exception { @@ -334,6 +340,9 @@ } + /** + * @throws Exception if the test fails + */ public void testGetTabbableElements() throws Exception { @@ -384,6 +393,9 @@ } + /** + * @throws Exception if the test fails + */ public void testGetHtmlElementByAccessKey() throws Exception { @@ -417,6 +429,9 @@ } + /** + * @throws Exception if the test fails + */ public void testGetHtmlElementsByAccessKey() throws Exception { @@ -446,6 +461,9 @@ } + /** + * @throws Exception if the test fails + */ public void testAssertAllIdAttributesUnique() throws Exception { @@ -477,6 +495,9 @@ } + /** + * @throws Exception if the test fails + */ public void testAssertAllIdAttributesUnique_Duplicates() throws Exception { @@ -515,6 +536,9 @@ } + /** + * @throws Exception if the test fails + */ public void testAssertAllAccessKeyAttributesUnique() throws Exception { @@ -546,6 +570,9 @@ } + /** + * @throws Exception if the test fails + */ public void testAssertAllAccessKeyAttributesUnique_Duplicates() throws Exception { @@ -584,6 +611,9 @@ } + /** + * @throws Exception if the test fails + */ public void testAssertAllTabIndexAttributesSet() throws Exception { @@ -617,6 +647,9 @@ } + /** + * @throws Exception if the test fails + */ public void testAssertAllTabIndexAttributesSet_SomeMissing() throws Exception { @@ -657,6 +690,9 @@ } + /** + * @throws Exception if the test fails + */ public void testAssertAllTabIndexAttributesSet_BadValue() throws Exception { @@ -697,6 +733,9 @@ } + /** + * @throws Exception if the test fails + */ public void testGetFullQualifiedUrl_NoBaseSpecified() throws Exception { final String htmlContent = "<html><head><title>foo</title></head><body>" @@ -744,6 +783,9 @@ } + /** + * @throws Exception if the test fails + */ public void testGetFullQualifiedUrl_WithBase() throws Exception { final String htmlContent = "<html><head><title>foo</title><base href='http://second'></head><body>" @@ -774,6 +816,9 @@ } + /** + * @throws Exception if the test fails + */ public void testOnLoadHandler_BodyStatement() throws Exception { final String content = "<html><head><title>foo</title>" @@ -792,6 +837,7 @@ /** * Regression test for bug 713646 + * @throws Exception if the test fails */ public void testOnLoadHandler_BodyName() throws Exception { final String content @@ -811,6 +857,7 @@ /** * Regression test for bug 713646 + * @throws Exception if the test fails */ public void testOnLoadHandler_BodyName_NotAFunction() throws Exception { final String content = @@ -831,6 +878,7 @@ /** * Regression test for window.onload property + * @throws Exception if the test fails */ public void testOnLoadHandler_BodyNameRead() throws Exception { final String content @@ -854,6 +902,7 @@ /** * Regression test for window.onload property + * @throws Exception if the test fails */ public void testOnLoadHandler_ScriptName() throws Exception { final String content @@ -875,6 +924,7 @@ /** * Regression test for window.onload property + * @throws Exception if the test fails */ public void testOnLoadHandler_ScriptNameRead() thr... [truncated message content] |
From: SourceForge.net <no...@so...> - 2003-09-03 15:21:54
|
Feature Requests item #799865, was opened at 2003-09-03 15:21 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448269&aid=799865&group_id=47038 Category: None Group: None Status: Open Priority: 5 Submitted By: Andres Gonzalo (serdnago) Assigned to: Nobody/Anonymous (nobody) Summary: Support for clicking an image Initial Comment: Please add support for clicking an image like in: <img src="images/hcright.gif" alt="Move Right" onclick="moveSelectedOptions(availableRoles, roles)" /> Thanks ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448269&aid=799865&group_id=47038 |
From: SourceForge.net <no...@so...> - 2003-09-03 14:41:01
|
Bugs item #799839, was opened at 2003-09-03 14:41 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=799839&group_id=47038 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Andrei Kirshin (akirshin1) Assigned to: Nobody/Anonymous (nobody) Summary: Cannot select option that has no value Initial Comment: <form name="form" method="GET" action="action.html"> <select name="select" multiple size="5"> <option value="1">111</option> <option>222</option> </select> </form> I get the second option (HtmlOption), I call option.setSelected(true), I get Exception: java.lang.IllegalStateException: Can't select this option because it has no value set at com.gargoylesoftware.htmlunit.html.HtmlOption.setSelect ed(HtmlOption.java:82) Thanks. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=799839&group_id=47038 |
From: SourceForge.net <no...@so...> - 2003-09-03 14:17:29
|
Feature Requests item #799817, was opened at 2003-09-03 14:17 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448269&aid=799817&group_id=47038 Category: None Group: None Status: Open Priority: 5 Submitted By: Andrei Kirshin (akirshin1) Assigned to: Nobody/Anonymous (nobody) Summary: Client-side map Initial Comment: Please add support for client-side map: <IMG src="x.jpg" usemap="#map1" border="0"> <MAP name="map1"> <AREA href="a.html" shape="rect" coords="0,0,20,20"> <AREA href="b.html" shape="circle" coords="30,10,10> </MAP> Something like HtmlImage.click(x,y) I guess (like in HtmlInput). Thanks. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448269&aid=799817&group_id=47038 |
From: SourceForge.net <no...@so...> - 2003-09-03 14:13:33
|
Feature Requests item #799815, was opened at 2003-09-03 14:13 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448269&aid=799815&group_id=47038 Category: None Group: None Status: Open Priority: 5 Submitted By: Andrei Kirshin (akirshin1) Assigned to: Nobody/Anonymous (nobody) Summary: Server-side map Initial Comment: Please add support for server-side map: <A href="ok.html"><IMG src="logo.gif" ismap></A> Something like HtmlAnchor.click(x,y) I guess (like in HtmlInput). Thanks. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448269&aid=799815&group_id=47038 |
From: <no...@us...> - 2003-09-03 12:55:04
|
Log Message: ----------- Added "log" Modified Files: -------------- /cvsroot/htmlunit/htmlunit: .cvsignore Revision Data ------------- Index: .cvsignore =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/.cvsignore,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- .cvsignore 15 Apr 2003 13:02:11 -0000 1.3 +++ .cvsignore 3 Sep 2003 12:54:33 -0000 1.4 @@ -1,5 +1,6 @@ maven.log velocity.log +log target build.properties .classpath |
From: SourceForge.net <no...@so...> - 2003-09-03 12:51:53
|
Bugs item #782661, was opened at 2003-08-04 03:14 Message generated for change (Comment added) made by mbowler You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=782661&group_id=47038 Category: None Group: None >Status: Closed Resolution: None Priority: 5 Submitted By: Andreas Hangler (ahangler) >Assigned to: Mike Bowler (mbowler) Summary: onload: fixing buggy bug fix 713646 Initial Comment: Bug fix 713646 intended to allow for function expressions without parentheses in the "onload" attribute, but adding parentheses does not always yield the desired result, e.g. when applying to an assignment like in <body onload='foo=4711'> My patch checks for the returned JavaScript result and if this constitutes a function it performs an additional JavaScript function call (without arguments) - just as if parentheses were given. The patch consists of corrected HtmlPage.java and an extended HtmlPageTest.java. Regards Andreas ---------------------------------------------------------------------- >Comment By: Mike Bowler (mbowler) Date: 2003-09-03 08:51 Message: Logged In: YES user_id=46756 Patch submitted - thanks. In future, please don't put "patch" comments - this just makes extra work for the committer. Just change the code to what it should be and submit the diff. Also ensure that you give yourself credit in the @author tags of any file you change. I've added them for you this time. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=782661&group_id=47038 |
From: <no...@us...> - 2003-09-03 12:49:40
|
Log Message: ----------- Patch for bug 713646 submitted by Andreas Hangler Modified Files: -------------- /cvsroot/htmlunit/htmlunit/src/xdocs: changes.xml /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html: HtmlPageTest.java /cvsroot/htmlunit/htmlunit: project.xml /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/html: HtmlPage.java Revision Data ------------- Index: HtmlPageTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlPageTest.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- HtmlPageTest.java 11 Aug 2003 15:24:58 -0000 1.7 +++ HtmlPageTest.java 3 Sep 2003 12:49:36 -0000 1.8 @@ -56,6 +56,7 @@ * @author <a href="mailto:mb...@Ga...">Mike Bowler</a> * @author Noboru Sinohara * @author David K. Taylor + * @author Andreas Hangler */ public class HtmlPageTest extends WebTestCase { @@ -806,6 +807,25 @@ "foo" }); assertEquals( expectedAlerts, collectedAlerts ); + } + + /** + * Regression test for bug 713646 + */ + public void testOnLoadHandler_BodyName_NotAFunction() throws Exception { + final String content = + "<html><head><title>foo</title></head>" + + "<body onLoad='foo=4711'>" + + "<a name='alert' href='javascript:alert(foo)'/>" + + "</body></html>"; + final List collectedAlerts = new ArrayList(); + final HtmlPage page = loadPage(content, collectedAlerts); + assertEquals("foo", page.getTitleText()); + + page.getAnchorByName("alert").click(); + + final List expectedAlerts = Arrays.asList(new String[] { "4711" }); + assertEquals(expectedAlerts, collectedAlerts); } Index: project.xml =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/project.xml,v retrieving revision 1.28 retrieving revision 1.29 diff -u -d -r1.28 -r1.29 --- project.xml 3 Sep 2003 12:20:05 -0000 1.28 +++ project.xml 3 Sep 2003 12:49:36 -0000 1.29 @@ -103,6 +103,9 @@ <contributor> <name>Brad Clarke</name> </contributor> + <contributor> + <name>Andreas Hangler</name> + </contributor> </contributors> <dependencies> Index: changes.xml =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/xdocs/changes.xml,v retrieving revision 1.121 retrieving revision 1.122 diff -u -d -r1.121 -r1.122 --- changes.xml 31 Jul 2003 23:18:17 -0000 1.121 +++ changes.xml 3 Sep 2003 12:49:36 -0000 1.122 @@ -6,6 +6,13 @@ </properties> <body> + <release version="1.3" date="not released yet"> + <action type="update" dev="mbowler" id="713646"> + Patch for bug in onload handler submitted by Andreas Hangler + </action> + </release> + + <release version="1.2.3" date="July 31, 2003"> <action type="add" dev="mbowler"> Initial support for Maven Index: HtmlPage.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/html/HtmlPage.java,v retrieving revision 1.48 retrieving revision 1.49 diff -u -d -r1.48 -r1.49 --- HtmlPage.java 19 Jul 2003 18:19:36 -0000 1.48 +++ HtmlPage.java 3 Sep 2003 12:49:37 -0000 1.49 @@ -37,18 +37,6 @@ */ package com.gargoylesoftware.htmlunit.html; -import com.gargoylesoftware.htmlunit.Assert; -import com.gargoylesoftware.htmlunit.ElementNotFoundException; -import com.gargoylesoftware.htmlunit.ObjectInstantiationException; -import com.gargoylesoftware.htmlunit.Page; -import com.gargoylesoftware.htmlunit.ScriptEngine; -import com.gargoylesoftware.htmlunit.ScriptFilter; -import com.gargoylesoftware.htmlunit.ScriptResult; -import com.gargoylesoftware.htmlunit.SubmitMethod; -import com.gargoylesoftware.htmlunit.TextUtil; -import com.gargoylesoftware.htmlunit.WebClient; -import com.gargoylesoftware.htmlunit.WebResponse; -import com.gargoylesoftware.htmlunit.WebWindow; import java.io.IOException; import java.io.InputStream; import java.net.MalformedURLException; @@ -62,14 +50,29 @@ import java.util.List; import java.util.Map; import java.util.TreeMap; + +import org.apache.commons.httpclient.HttpConstants; import org.apache.xerces.xni.parser.XMLDocumentFilter; import org.cyberneko.html.HTMLConfiguration; import org.cyberneko.html.parsers.DOMParser; +import org.mozilla.javascript.Function; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.xml.sax.InputSource; import org.xml.sax.SAXException; -import org.apache.commons.httpclient.HttpConstants; + +import com.gargoylesoftware.htmlunit.Assert; +import com.gargoylesoftware.htmlunit.ElementNotFoundException; +import com.gargoylesoftware.htmlunit.ObjectInstantiationException; +import com.gargoylesoftware.htmlunit.Page; +import com.gargoylesoftware.htmlunit.ScriptEngine; +import com.gargoylesoftware.htmlunit.ScriptFilter; +import com.gargoylesoftware.htmlunit.ScriptResult; +import com.gargoylesoftware.htmlunit.SubmitMethod; +import com.gargoylesoftware.htmlunit.TextUtil; +import com.gargoylesoftware.htmlunit.WebClient; +import com.gargoylesoftware.htmlunit.WebResponse; +import com.gargoylesoftware.htmlunit.WebWindow; /** * A representation of an html page returned from a server. This is also the @@ -80,6 +83,7 @@ * @author Alex Nikiforoff * @author Noboru Sinohara * @author David K. Taylor + * @author Andreas Hangler */ public final class HtmlPage extends HtmlElement @@ -1090,10 +1094,15 @@ if ( onLoad instanceof String ) { String onLoadScript = (String) onLoad; if( onLoadScript.length() != 0 ) { - if( onLoadScript.indexOf('(') == -1 ) { - onLoadScript = onLoadScript + "()"; + ScriptResult scriptResult = + executeJavaScriptIfPossible(onLoadScript, "body.onLoad", false, null); + + // if script evaluates to a function then call it + Object javaScriptResult = scriptResult.getJavaScriptResult(); + if (javaScriptResult != null && javaScriptResult instanceof Function) { + ScriptEngine engine = getWebClient().getScriptEngine(); + engine.callFunction(this, javaScriptResult, null, new Object[] {}, null); } - executeJavaScriptIfPossible(onLoadScript, "body.onLoad", false, null); } } else { |
From: <no...@us...> - 2003-09-03 12:33:04
|
Log Message: ----------- commons-httpclient-2.0rc1 dumps a lot more trace messages to the console. Disabled some that we don't care about when running the tests. Modified Files: -------------- /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit: MainTestSuite.java Revision Data ------------- Index: MainTestSuite.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/MainTestSuite.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- MainTestSuite.java 10 Jun 2003 11:57:00 -0000 1.2 +++ MainTestSuite.java 3 Sep 2003 12:33:04 -0000 1.3 @@ -86,6 +86,7 @@ System.getProperties().put(prefix+"org.apache.commons.httpclient.HttpState", "info"); System.getProperties().put(prefix+"org.apache.commons.httpclient.ResponseInputStream", "info"); System.getProperties().put(prefix+"org.apache.commons.httpclient.cookie.CookieSpec", "info"); - System.getProperties().put(prefix+"org.apache.commons.httpclient.methods.GetMethod", "info"); + System.getProperties().put(prefix+"org.apache.commons.httpclient.methods.GetMethod", "info"); + System.getProperties().put(prefix+"org.apache.commons.httpclient.HttpMethodBase", "info"); } } |
From: SourceForge.net <no...@so...> - 2003-09-03 12:23:25
|
Feature Requests item #799760, was opened at 2003-09-03 12:23 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448269&aid=799760&group_id=47038 Category: None Group: None Status: Open Priority: 5 Submitted By: Andrei Kirshin (akirshin1) Assigned to: Nobody/Anonymous (nobody) Summary: Getting all top level windows Initial Comment: Please add support for getting all open windows: TopLevelWindow[] WebClient.getAllWindows() [not static of course] Currently the only way to get the list of all windows is to registering a listener and keeping track of all webWindowOpened events, which is less convenient. Oh, and also there is no webWindowClosed event (a window also can be closed from JavaScript), but there is a separate RFE on this. Thanks a lot. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448269&aid=799760&group_id=47038 |
From: <no...@us...> - 2003-09-03 12:20:38
|
Log Message: ----------- Upgraded to 2.0-rc1 Modified Files: -------------- /cvsroot/htmlunit/htmlunit/dist/lib: commons-httpclient.jar Revision Data ------------- Index: commons-httpclient.jar =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/dist/lib/commons-httpclient.jar,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 Binary files /tmp/cvsqs8zRo and /tmp/cvsO2t2FE differ |
From: <no...@us...> - 2003-09-03 12:20:06
|
Log Message: ----------- Changed the commons-httpclient dependency to 2.0-rc1 Modified Files: -------------- /cvsroot/htmlunit/htmlunit: project.xml Revision Data ------------- Index: project.xml =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/project.xml,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- project.xml 11 Aug 2003 15:19:30 -0000 1.27 +++ project.xml 3 Sep 2003 12:20:05 -0000 1.28 @@ -201,7 +201,7 @@ <dependency> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId> - <version>2.0-beta2</version> + <version>2.0-rc1</version> <url>http://jakarta.apache.org/commons/httpclient</url> <properties> <htmlunit.group>required</htmlunit.group> |
From: <no...@us...> - 2003-09-03 12:19:29
|
Log Message: ----------- Added a test for the spanish version of yahoo mail Modified Files: -------------- /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit: SanityCheck.java Revision Data ------------- Index: SanityCheck.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/SanityCheck.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- SanityCheck.java 28 Jun 2003 17:24:27 -0000 1.5 +++ SanityCheck.java 3 Sep 2003 12:19:28 -0000 1.6 @@ -85,15 +85,24 @@ } - /** - * Test against a live server: Yahoo - * @throws Exception If something goes wrong. - */ - public void testYahoo() throws Exception { - final WebClient webClient = new WebClient(BROWSER_VERSION); - assertInstanceOf( webClient.getPage( new URL( "http://yahoo.com/" ) ), HtmlPage.class ); - } + /** + * Test against a live server: Yahoo + * @throws Exception If something goes wrong. + */ + public void testYahoo() throws Exception { + final WebClient webClient = new WebClient(BROWSER_VERSION); + assertInstanceOf( webClient.getPage( new URL( "http://yahoo.com/" ) ), HtmlPage.class ); + } + /** + * Test against a live server: Yahoo + * @throws Exception If something goes wrong. + */ + public void testYahoo_Spanish() throws Exception { + final WebClient webClient = new WebClient(BROWSER_VERSION); + assertInstanceOf( webClient.getPage( new URL( "http://edit.europe.yahoo.com/config/mail?.intl=es" ) ), HtmlPage.class ); + } + /** * Test against a live server: IBM |
From: Mike B. <mb...@Ga...> - 2003-09-03 12:17:43
|
sancho gracias wrote: > I've been trying to move the commons-httpclient.jar at the the beginning of my classpath. > Don´t work with the url http://edit.europe.yahoo.com/config/mail?.intl=es > but yes with > http://mail.yahoo.com/?.intl=us > i supose that this one is which you use, isn´t it?? Right. I have just now tried your new url and that one works for me as well. > Well, when i try with the last url i have a new error: > > 03-sep-2003 13:48:01 org.apache.commons.httpclient.HttpMethodBase processRedirectResponse > INFO: Redirect requested but followRedirects is disabled This one is explained in the FAQ http://htmlunit.sourceforge.net/faq.html > <meta content="0; url=http://f207.mail.yahoo.com/ym/login?.rand=cjab08d5n3031" http-equiv="Refresh"/> > > Why doesn´t do redirect? Redirects via meta tags hasn't been implemented yet. A feature request ia already open for this functionality http://sourceforge.net/tracker/index.php?func=detail&aid=772233&group_id=47038&atid=448269 -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: SourceForge.net <no...@so...> - 2003-09-03 12:17:26
|
Feature Requests item #799757, was opened at 2003-09-03 12:17 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448269&aid=799757&group_id=47038 Category: None Group: None Status: Open Priority: 5 Submitted By: Andrei Kirshin (akirshin1) Assigned to: Nobody/Anonymous (nobody) Summary: Close window Initial Comment: Please add support for closing windows: TopLevelWindow.close() [not static of course] ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448269&aid=799757&group_id=47038 |
From: SourceForge.net <no...@so...> - 2003-09-03 12:13:10
|
Bugs item #799752, was opened at 2003-09-03 12:13 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=799752&group_id=47038 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Andrei Kirshin (akirshin1) Assigned to: Nobody/Anonymous (nobody) Summary: Exception: The undefined value has no properties Initial Comment: I use HtmlUnit 1.2.3 I get the error message "The undefined value has no properties." parsing the JavaScript in the following HTML page: <html> <head> <script language='JavaScript'> //<!-- function buggy(){ var option1 = document.f1.elements['select'][0]; option1.value = 'XXX'; // This line causes the exception option1.selected = true; // This line also causes the exception } //--> </script> </head> <body onload='buggy();'> <form name='f1' action='xxx.html'> <SELECT name='select'> <OPTION value='A'>111</OPTION> <OPTION value='B'>222</OPTION> </SELECT> </form> </body> </html> Following is the stack trace: org.mozilla.javascript.EvaluatorException: The undefined value has no properties. at com.gargoylesoftware.htmlunit.javascript.StrictErrorRepor ter.runtimeError(StrictErrorReporter.java:114) at org.mozilla.javascript.Context.reportRuntimeError (Context.java:591) at org.mozilla.javascript.Context.reportRuntimeError (Context.java:630) at org.mozilla.javascript.Context.reportRuntimeError0 (Context.java:600) at org.mozilla.javascript.Undefined.reportError (Undefined.java:138) at org.mozilla.javascript.Undefined.getPrototype (Undefined.java:100) at org.mozilla.javascript.ScriptableObject.getBase (ScriptableObject.java:1585) at org.mozilla.javascript.ScriptableObject.putProperty (ScriptableObject.java:1473) at org.mozilla.javascript.ScriptRuntime.setProp (ScriptRuntime.java:842) at org.mozilla.javascript.gen.c1.call(Embedded script:2) at org.mozilla.javascript.optimizer.OptRuntime.callSimple (OptRuntime.java:275) at org.mozilla.javascript.gen.c4.call (body.onLoad:1) at org.mozilla.javascript.gen.c4.exec (body.onLoad) at org.mozilla.javascript.Context.evaluateReader (Context.java:820) at org.mozilla.javascript.Context.evaluateString (Context.java:784) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngin e.execute(JavaScriptEngine.java:242) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJav aScriptIfPossible(HtmlPage.java:889) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeBod yOnLoadHandlerIfNeeded(HtmlPage.java:1096) at com.gargoylesoftware.htmlunit.html.HtmlPage.initialize (HtmlPage.java:173) at com.gargoylesoftware.htmlunit.WebClient.getPage (WebClient.java:356) at com.gargoylesoftware.htmlunit.WebClient.getPage (WebClient.java:276) at com.gargoylesoftware.htmlunit.WebClient.getPage (WebClient.java:220) at ScriptTest.loadPage(ScriptTest.java:45) at ScriptTest.main(ScriptTest.java:31) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=799752&group_id=47038 |
From: Mike B. <mb...@Ga...> - 2003-09-03 11:37:05
|
sancho gracias wrote: > Cookie rejected: "$Version=0; B=0kpcts4vlbhvp&b=2; > $Domain=.yahoo.com; $Path=/". Domain attribute ".yahoo.com" > violates RFC 2109: host minus domain may not contain any dots > > I have j2sdk1.4.1_02; the version of commons-httpclient is > 2.0-rc1 (the latest version) and IE. I just tried loading http://www.yahoo.com/ and it worked fine so I'm assuming that your problem is configuration related. Try moving commons-httpclient 2.0-rc1 to the beginning of your classpath. (all cookie support is handled by commons-httpclient) -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: sancho g. <sa...@po...> - 2003-09-03 11:04:32
|
Hello, I'm getting started in the world of HtmlUnit and I have some problems w= hen submit a form. Here is my code: final WebClient webClient =3D new WebClient(); webClient.setJavaScriptEnabled(false); webClient.setRedirectEnabled(true); final URL url =3D new URL "http://edit.europe.yahoo.com/config/mail?.in= tl=3Des"); final HtmlPage page =3D (HtmlPage)webClient.getPage(ur= l); final HtmlForm form =3D page.getFormByName("login_form"); final HtmlTextInput Name=3D (HtmlTextInput )form.getInputByName("login"= ); Name.setValueAttribute("xxxx"); final HtmlPasswordInput Password=3D (HtmlPasswordInput) form.getInputBy= Name("passwd"); Password.setValueAttribute("xxxx"); final HtmlPage pagina =3D (HtmlPage) form.submit(); Well this is the error: Cookie rejected: "$Version=3D0; B=3D0kpcts4vlbhvp&b=3D2; $Domain=3D.ya= hoo.com; $Path=3D/". Domain attribute ".yahoo.com" violates RFC 2109: ho= st minus domain may not contain any dots I have j2sdk1.4.1_02; the version of commons-httpclient is 2.0-rc1 (the= latest version) and IE. I supose that it needs to use cookies to identify me. What can i do to resolve it??? Any help please.. Obtenga su E-mail GRATUITO en http://poesia.zzn.com ____________________________________________________________ Para obtener su propio servicio de correo electr=F3nico basado en la Mu= ltimalla, dir=EDjase a http://www.zzn.com |
From: SourceForge.net <no...@so...> - 2003-09-02 14:54:19
|
Feature Requests item #799173, was opened at 2003-09-02 09:54 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448269&aid=799173&group_id=47038 Category: None Group: None Status: Open Priority: 5 Submitted By: Ted Elliott (telliott24) Assigned to: Nobody/Anonymous (nobody) Summary: Add innerHTML, innerText properties Initial Comment: Please add the innerHTML, innerText properties for elements. We would like to use this product, but as our app depends heavily on these properties, we can't. With the attached example, reading the innerHTML property after the page has been loaded should return "<b>divtext</b>" and reading innerText should return "divtext". ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448269&aid=799173&group_id=47038 |
From: <no...@us...> - 2003-09-02 13:17:57
|
Log Message: ----------- Removed unused variable. Moved other variable declarations to the top of the class Modified Files: -------------- /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/html: HtmlInput.java Revision Data ------------- Index: HtmlInput.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/html/HtmlInput.java,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- HtmlInput.java 23 Jul 2003 17:26:52 -0000 1.25 +++ HtmlInput.java 2 Sep 2003 13:17:23 -0000 1.26 @@ -55,7 +55,17 @@ extends HtmlElement implements SubmittableElement { - private final String originalValue_; + //For Checkbox, radio + private final boolean initialCheckedState_; + + //for Hidden, password + private final String initialValue_; + + //For Image + private boolean wasPositionSpecified_ = false; + private boolean processingClick_ = false; + private int xPosition_; + private int yPosition_; /** * Create an instance @@ -65,7 +75,7 @@ */ HtmlInput( final HtmlPage page, final Element element ) { super( page, element ); - originalValue_ = element.getAttribute("value"); + //From the checkbox creator initialCheckedState_ = isAttributeDefined("checked"); initialValue_ = getValueAttribute(); @@ -669,16 +679,7 @@ return getAttributeValue("align"); } - //For Checkbox, radio - private final boolean initialCheckedState_; - //for Hidden, password - private final String initialValue_; - //For Image - private boolean wasPositionSpecified_ = false; - private boolean processingClick_ = false; - private int xPosition_; - private int yPosition_; - + /** * Reset this element to its original values. */ |
From: <ji...@ya...> - 2003-08-29 10:07:52
|
Hi all, I submitted a patch at sourceforge. Hope it's useful for you. The patch has done: 1. "about:" URL and "about:blank" javascript handling. 2. window.frames["name"] implementation 3. Multiple cookies submit bug fix. To exchange multiple cookies with some "strict" server like mail.yahoo.com, our HttpClient has to be in strict mode to merge multiple cookie header into one cookie header. 4. Correct WebClient(BrowserVersion, httpProxy,httpPort),which misses setting browserVersion. 5. document.open() place holder Yours Sincerely, Jim _________________________________________________________ Do You Yahoo!? 启用电邮帐号,领会雅虎通[身临其境聊电影]的动感魅力,还有网络摄像头+雅虎通收音机等你来拿 http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.messenger.yahoo.com |
From: SourceForge.net <no...@so...> - 2003-08-29 08:06:46
|
Patches item #797144, was opened at 2003-08-29 08:06 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448268&aid=797144&group_id=47038 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Jun Chen (chen_jun) Assigned to: Nobody/Anonymous (nobody) Summary: about:blank,window.frames["name"] patch & small fix Initial Comment: This patch has done: 1. "about:" URL and "about:blank" javascript handling. 2. window.frames["name"] implementation 3. Multiple cookies submit bug fix. To exchange multiple cookies with some "strict" server like mail.yahoo.com, our HttpClient has to be in strict mode to merge multiple cookie header into one cookie header. 4. WebClient(BrowserVersion, httpProxy,httpPort) misses setting BrowserVersion. 5. document.open() place holder ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448268&aid=797144&group_id=47038 |
From: Mike B. <mb...@Ga...> - 2003-08-23 13:50:44
|
Rahul Joshi wrote: > HtmlSelect optVals = form.getSelectByName("selectedOpts"); > optVals.fakeSelectedAttribute("DID"); > Submit.. This should do what you are expecting. I don't have time to dig it up now but there is a test (probably in HtmlSelectTest) that tests this behaviour. > It would be nice if you could give me some > directions to go about debugging this. > e.g where can i see what is being sent to server > from the client? I use a network sniffer when I want to debug something like this. I use ethereal which is free and available on just about every platform. http://www.ethereal.com/ -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |
From: Mike B. <mb...@Ga...> - 2003-08-23 11:37:25
|
Jim Chen wrote: > But it seems that the latest cvs version on > sourceforge is just 1.2.2. How can I contribute? The code in cvs in the "htmlunit" module is the latest code. If build.xml still says 1.2.2 then that's just a mistake that I'll have to fix. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |