You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by cr...@apache.org on 2005/02/08 21:34:21 UTC

svn commit: r152935 - in struts/faces/trunk/sysclient-app: build.xml src/java/org/apache/struts/faces/sysclient/AbstractTestCase.java

Author: craigmcc
Date: Tue Feb  8 12:34:18 2005
New Revision: 152935

URL: http://svn.apache.org/viewcvs?view=rev&rev=152935
Log:
Update HtmlUnit dependency to 1.4 (from 1.2.3) so that we can utilize the
much better JavaScript support in the new version.

Modified:
    struts/faces/trunk/sysclient-app/build.xml
    struts/faces/trunk/sysclient-app/src/java/org/apache/struts/faces/sysclient/AbstractTestCase.java

Modified: struts/faces/trunk/sysclient-app/build.xml
URL: http://svn.apache.org/viewcvs/struts/faces/trunk/sysclient-app/build.xml?view=diff&r1=152934&r2=152935
==============================================================================
--- struts/faces/trunk/sysclient-app/build.xml (original)
+++ struts/faces/trunk/sysclient-app/build.xml Tue Feb  8 12:34:18 2005
@@ -31,7 +31,8 @@
 
 
   <!-- Dependency home directory defaults -->
-  <property name="htmlunit.home"    value="/usr/local/htmlunit-1.2.3"/>
+  <!-- <property name="htmlunit.home"    value="/usr/local/htmlunit-1.2.3"/> -->
+  <property name="htmlunit.home"    value="/usr/local/htmlunit-1.4"/>
   <property name="jsf.home"         value="/usr/local/jsf-1_1"/>
   <property name="jstl.home"        value="/usr/local/standard-1.0.3"/>
   <property name="server.home"      value="/usr/local/jakarta-tomcat-5.0.25"/>

Modified: struts/faces/trunk/sysclient-app/src/java/org/apache/struts/faces/sysclient/AbstractTestCase.java
URL: http://svn.apache.org/viewcvs/struts/faces/trunk/sysclient-app/src/java/org/apache/struts/faces/sysclient/AbstractTestCase.java?view=diff&r1=152934&r2=152935
==============================================================================
--- struts/faces/trunk/sysclient-app/src/java/org/apache/struts/faces/sysclient/AbstractTestCase.java (original)
+++ struts/faces/trunk/sysclient-app/src/java/org/apache/struts/faces/sysclient/AbstractTestCase.java Tue Feb  8 12:34:18 2005
@@ -148,7 +148,7 @@
      */
     protected HtmlBody body() throws Exception {
 
-        Iterator elements = page.getChildElements().iterator();
+        Iterator elements = page.getAllHtmlChildElements();
         while (elements.hasNext()) {
             HtmlElement element = (HtmlElement) elements.next();
             if (element instanceof HtmlBody) {
@@ -205,7 +205,7 @@
      */
     protected HtmlHead head() throws Exception {
 
-        Iterator elements = page.getChildElements().iterator();
+        Iterator elements = page.getAllHtmlChildElements();
         while (elements.hasNext()) {
             HtmlElement element = (HtmlElement) elements.next();
             if (element instanceof HtmlHead) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org