[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit/javascript JavaScript.java,1.48,1.49
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2003-03-19 19:06:13
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/javascript
In directory sc8-pr-cvs1:/tmp/cvs-serv19188/src/com/meterware/httpunit/javascript
Modified Files:
JavaScript.java
Log Message:
fix document.close bugfix
Index: JavaScript.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/javascript/JavaScript.java,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- JavaScript.java 19 Mar 2003 17:41:04 -0000 1.48
+++ JavaScript.java 19 Mar 2003 19:05:38 -0000 1.49
@@ -541,8 +541,9 @@
public void jsFunction_close() {
- getDelegate().replaceText( getWriteBuffer().toString(), _mimeType == null ? "text/html" : _mimeType );
- getWriteBuffer().setLength(0);
+ if (getDelegate().replaceText( getWriteBuffer().toString(), _mimeType == null ? "text/html" : _mimeType )) {
+ getWriteBuffer().setLength(0);
+ }
}
|