7 messages in com.canoo.lists.webtest[Webtest] JavaScript exception using ...
FromSent OnAttachments
Matt Raible10 Aug 2005 08:12 
Marc Guillemot10 Aug 2005 08:28 
Matt Raible11 Aug 2005 05:36 
Marc Guillemot11 Aug 2005 05:44 
Matt Raible11 Aug 2005 05:47 
Marc Guillemot11 Aug 2005 06:06 
Marc Guillemot11 Aug 2005 06:08 
Subject:[Webtest] JavaScript exception using Prototype and Scriptaculous
From:Matt Raible (lis@raibledesigns.com)
Date:08/10/2005 08:12:33 AM
List:com.canoo.lists.webtest

I'm using the prototype and scriptaculous JavaScript libraries in my application. They seem to work great in a browser. However, with WebTest build 544 (has HtmlUnit), I'm getting the following error. It doesn't fail the test, so it seems harmless. Is there anyway to surpress it, or is there something in prototype.js that I need to patch?

AddUser: [canoo] [appfuse-appgen] ERROR [Thread-15] Window.run(245) | Caught exceptio n in Window.setTimeout() [canoo] ======= EXCEPTION START ======== [canoo] EcmaError: lineNumber=[1] column=[73] lineSource=[function GargoyleW rapper15() {org.mozilla.javascript.InterpretedFunction@15bab52] name=[SyntaxErro r] sourceName=[Wrapper definition for Window.setTimeout()] message=[illegal char acter] errorObject=[SyntaxError: illegal character] [canoo] com.gargoylesoftware.htmlunit.ScriptException: illegal character [canoo] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.exe cute(JavaScriptEngine.java:280) [canoo] at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScript IfPossible(HtmlPage.java:709) [canoo] at com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Wi ndow.java:241) [canoo] at java.lang.Thread.run(Thread.java:534) [canoo] Enclosed exception: [canoo] SyntaxError: illegal character (Wrapper definition for Window.setTim eout(); line 1) [canoo] at org.mozilla.javascript.NativeGlobal.constructError(NativeGlob al.java:597) [canoo] at org.mozilla.javascript.TokenStream.reportSyntaxError(TokenStr eam.java:1324) [canoo] at org.mozilla.javascript.TokenStream.getToken(TokenStream.java: 1302) [canoo] at org.mozilla.javascript.Parser.memberExprTail(Parser.java:1213 ) [canoo] at org.mozilla.javascript.Parser.memberExpr(Parser.java:1204) [canoo] at org.mozilla.javascript.Parser.unaryExpr(Parser.java:1115) [canoo] at org.mozilla.javascript.Parser.mulExpr(Parser.java:1062) [canoo] at org.mozilla.javascript.Parser.addExpr(Parser.java:1045) [canoo] at org.mozilla.javascript.Parser.shiftExpr(Parser.java:1032) [canoo] at org.mozilla.javascript.Parser.relExpr(Parser.java:1015) [canoo] at org.mozilla.javascript.Parser.eqExpr(Parser.java:1002) [canoo] at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:991) [canoo] at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:980) [canoo] at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:969) [canoo] at org.mozilla.javascript.Parser.andExpr(Parser.java:957) [canoo] at org.mozilla.javascript.Parser.orExpr(Parser.java:945) [canoo] at org.mozilla.javascript.Parser.condExpr(Parser.java:928) [canoo] at org.mozilla.javascript.Parser.assignExpr(Parser.java:909) [canoo] at org.mozilla.javascript.Parser.expr(Parser.java:898) [canoo] at org.mozilla.javascript.Parser.statementHelper(Parser.java:791 ) [canoo] at org.mozilla.javascript.Parser.statement(Parser.java:387) [canoo] at org.mozilla.javascript.Parser.parseFunctionBody(Parser.java:1 67) [canoo] at org.mozilla.javascript.Parser.function(Parser.java:271) [canoo] at org.mozilla.javascript.Parser.parse(Parser.java:121) [canoo] at org.mozilla.javascript.Context.compile(Context.java:2053) [canoo] at org.mozilla.javascript.Context.compile(Context.java:2006) [canoo] at org.mozilla.javascript.Context.compileReader(Context.java:899 ) [canoo] at org.mozilla.javascript.Context.evaluateReader(Context.java:81 7) [canoo] at org.mozilla.javascript.Context.evaluateString(Context.java:78 4) [canoo] at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.exe cute(JavaScriptEngine.java:272) [canoo] at com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScript IfPossible(HtmlPage.java:709) [canoo] at com.gargoylesoftware.htmlunit.javascript.host.Window$1.run(Wi ndow.java:241) [canoo] at java.lang.Thread.run(Thread.java:534) [canoo] == CALLING JAVASCRIPT == [canoo] function GargoyleWrapper15() {org.mozilla.javascript.InterpretedFunc tion@15bab52 [canoo] } [canoo] ======= EXCEPTION END ========

Thanks,

Matt