[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit/javascript JavaScript.java,1.57,1.58
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2004-03-09 22:14:56
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/javascript In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15032/src/com/meterware/httpunit/javascript Modified Files: JavaScript.java Log Message: recache scripted elements before running script sections Index: JavaScript.java =================================================================== RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/javascript/JavaScript.java,v retrieving revision 1.57 retrieving revision 1.58 diff -u -r1.57 -r1.58 --- JavaScript.java 27 Oct 2003 21:16:10 -0000 1.57 +++ JavaScript.java 9 Mar 2004 21:49:18 -0000 1.58 @@ -283,6 +283,10 @@ } + public void clearCaches() { + } + + protected static String toStringIfNotUndefined( Object object ) { return (object == null || Undefined.instance.equals( object )) ? null : object.toString(); } @@ -464,6 +468,11 @@ } + public void clearCaches() { + if (_document != null) _document.clearCaches(); + } + + protected StringBuffer getDocumentWriteBuffer() { return jsGet_document().getWriteBuffer(); } @@ -494,6 +503,11 @@ } + public void clearCaches() { + _forms = _links = _images = null; + } + + public String jsGet_title() throws SAXException { return getDelegate().getTitle(); } |