[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit/javascript JavaScript.java,1.37,1.38
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2002-11-13 13:36:42
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/javascript
In directory usw-pr-cvs1:/tmp/cvs-serv3125/src/com/meterware/httpunit/javascript
Modified Files:
JavaScript.java
Log Message:
Support location.href
Index: JavaScript.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/javascript/JavaScript.java,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- JavaScript.java 3 Nov 2002 06:31:14 -0000 1.37
+++ JavaScript.java 13 Nov 2002 13:36:39 -0000 1.38
@@ -563,6 +563,16 @@
}
+ public String jsGet_href() {
+ return toString();
+ }
+
+
+ public void jsSet_href( String urlString ) throws SAXException, IOException {
+ _window.setLocation( urlString );
+ }
+
+
/**
* Returns the default value of this scriptable object. In this case, it returns simply the URL as a string.
* Note that this method is necessary, since Rhino will only call the toString method directly if there are no
|