[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit/javascript JavaScript.java,1.44,1.45
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2003-02-05 16:07:44
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/javascript
In directory sc8-pr-cvs1:/tmp/cvs-serv7415/src/com/meterware/httpunit/javascript
Modified Files:
JavaScript.java
Log Message:
Check for HTML before trying to run scripts in new window
Index: JavaScript.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/javascript/JavaScript.java,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- JavaScript.java 9 Jan 2003 18:02:24 -0000 1.44
+++ JavaScript.java 5 Feb 2003 16:07:39 -0000 1.45
@@ -179,6 +179,7 @@
private void handleScriptException( Exception e, String badScript ) {
final String errorMessage = badScript + " failed: " + e;
if (!(e instanceof EcmaError) && !(e instanceof EvaluatorException)) {
+ e.printStackTrace();
throw new RuntimeException( errorMessage );
} else if (isThrowExceptionsOnError()) {
throw new ScriptException( errorMessage );
|