On Nov 2, 9:24 pm, "fker...@gmail.com" <fker...@gmail.com> wrote:
> On Nov 2, 7:35 am, Thomas Broyer <t.bro...@gmail.com> wrote:
>
> > It might very well be a bug in HtmlUnit if that's the runstyle you're
> > using to run your tests (it's the default one in MS1 and MS2), but
> > according to this test (from 2.0.0-ms1) it should work (the test isn't
> > annotated with
> > @DoNotRunWith(Platform.Htmlunit))http://code.google.com/p/google-web-toolkit/source/browse/tags/2.0.0-...
>
> > Try running your tests manually to confirm (add "-runStyle Manual" to
> > the -Dgwt.args sysprop; it'll ask you to open a URL in a browser, just
> > like with DevMode).
>
> When running manually, the test still fails, but now it produces:
>
> com.google.gwt.junit.client.TimeoutException: A timeout expired after
> 1000ms elapsed.
> at com.google.gwt.junit.client.GWTTestCase$KillTimer.run
> (GWTTestCase.java:56)
> at com.google.gwt.user.client.Timer.fire(Timer.java:141)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
> 103)
> at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
> 71)
> at com.google.gwt.dev.shell.OophmSessionHandler.invoke
> (OophmSessionHandler.java:146)
> at
> com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn
> (BrowserChannel.java:1704)
> at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
> (BrowserChannelServer.java:144)
> at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
> (ModuleSpaceOOPHM.java:120)
> at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> 518)
> at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
> (ModuleSpace.java:275)
> at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
> (JavaScriptHost.java:91)
> at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
> at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
> 103)
> at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
> 71)
> at com.google.gwt.dev.shell.OophmSessionHandler.invoke
> (OophmSessionHandler.java:146)
> at com.google.gwt.dev.shell.BrowserChannel.reactToMessages
> (BrowserChannel.java:1660)
> at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
> (BrowserChannelServer.java:354)
> at com.google.gwt.dev.shell.BrowserChannelServer.run
> (BrowserChannelServer.java:192)
> at java.lang.Thread.run(Thread.java:636)
>
> Any ideas? Thanks!
By the way, I had added a 1000 ms delay just in case; without it, the
test failed anyway, as the first time, when an expected condition
wasn't met:
junit.framework.AssertionFailedError: expected=1 actual=0
at junit.framework.Assert.fail(Assert.java:197)
at junit.framework.Assert.assertEquals(Assert.java:94)
at junit.framework.Assert.assertEquals(Assert.java:43)
at com.fkereki.mvptest.client.LoginViewGwtTest.testLoginView
(LoginViewGwtTest.java:51)
at
com.fkereki.mvptest.client.__LoginViewGwtTest_unitTestImpl.doRunTest
(transient source for
com.fkereki.mvptest.client.__LoginViewGwtTest_unitTestImpl:7)
...etc
Thanks again!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---