Hi!

I got some thouble with Rhino 1.6R1(pre-released). I'm testing a page that
uses a resizeTo() JavaScript function, but when the page loads it throws
the follow exception:

org.mozilla.javascript.EcmaError: TypeError: resizeTo is not a function.
      at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3240)
      at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3230)
      at
org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3246)
      at
org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3258)
      at
org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3317)
      at
org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:1987)
      at org.mozilla.javascript.gen.c25._c1(httpunit:2)
      at org.mozilla.javascript.gen.c25.call(httpunit)
      at
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:3026)
      at
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2164)
      at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140)
      at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:304)
      at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2769)
      at
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2145)
      at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140)
      at
com.meterware.httpunit.javascript.JavaScript$JavaScriptEngine.performEvent(JavaScript.java:162)
      at
com.meterware.httpunit.scripting.ScriptableDelegate.doEvent(ScriptableDelegate.java:55)
      at
com.meterware.httpunit.WebResponse$Scriptable.load(WebResponse.java:612)
      at
com.meterware.httpunit.javascript.JavaScript$Window.initialize(JavaScript.java:424)
      at
com.meterware.httpunit.javascript.JavaScript.run(JavaScript.java:80)
      at
com.meterware.httpunit.javascript.JavaScriptEngineFactory.associate(JavaScriptEngineFactory.java:46)
      at
com.meterware.httpunit.RequestContext.runScripts(RequestContext.java:44)
      at com.meterware.httpunit.WebWindow.getResponse(WebWindow.java:119)
      at com.meterware.httpunit.WebClient.getResponse(WebClient.java:112)
      at portal.ExampleWebTestCase.gotoPDM190(ExampleWebTestCase.java:56)
      at portal.Main.main(Main.java:26)

In Rhino site says that exists some functions that aren't oficial
JavaScript functions, and because of this some pages could throw errors...

I tryed to test the same page with the newest Mozilla (that uses the same
Rhino version) and it worked well!

Please! How could I solve (or ignore) this exception??? Exists another
JavaScript Implementation?

Thanks a lot!

Eduardo




Eduardo Luis A. Gourdy
Configuration Control Engineer
Embraer - S�o Jos� dos Campos
Phone: + 55 12 3927 4851

This message is intended solely for the use of its addressee and may
contain privileged  or confidential information.
If you are not the addressee you should not distribute, copy  or file this
message.
In this case, please notify the sender and destroy its contents
immediately.

Esta mensagem � para uso exclusivo de seu destinat�rio e pode conter
informa��es privilegiadas e confidenciais.
Se voc� n�o � o destinat�rio n�o deve distribuir, copiar ou arquivar a
mensagem.
Neste caso, por favor, notifique o remetente da mesma e destrua
imediatamente a mensagem.



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Jwebunit-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to