Update of /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/javascript
In directory sc8-pr-cvs1:/tmp/cvs-serv17038/test/com/meterware/httpunit/javascript
Modified Files:
FormScriptingTest.java HTMLElementTest.java
Log Message:
Chris Hane: Added support for generic HTMLElement properties
Index: FormScriptingTest.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/javascript/FormScriptingTest.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- FormScriptingTest.java 23 Jun 2003 23:54:04 -0000 1.24
+++ FormScriptingTest.java 19 Sep 2003 18:53:43 -0000 1.25
@@ -28,7 +28,6 @@
import junit.textui.TestRunner;
import junit.framework.TestSuite;
-import org.xml.sax.SAXException;
/**
Index: HTMLElementTest.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/test/com/meterware/httpunit/javascript/HTMLElementTest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- HTMLElementTest.java 28 Mar 2003 03:22:34 -0000 1.3
+++ HTMLElementTest.java 19 Sep 2003 18:53:43 -0000 1.4
@@ -105,4 +105,18 @@
}
+ public void testElementProperties() throws Exception {
+ defineWebPage( "start",
+ "<form name='perform' title=fifth>" +
+ " <input name='name' maxlength=20 tabindex='1'>" +
+ "</form>" );
+ WebConversation wc = new WebConversation();
+ WebResponse response = wc.getResponse( getHostPath() + "/start.html" );
+
+ assertEquals( "tabindex", "1", response.getScriptableObject().evaluateURL( "document.perform.name.tabindex") );
+ assertEquals( "maxlength", "20", response.getScriptableObject().evaluateURL( "document.perform.name.maxlength") );
+ }
+
+
+
}
|