Brilliant. Just what I needed. Thanks!
On May 22, 6:20 pm, Adam T <[email protected]> wrote: > the following might > help:http://groups.google.se/group/Google-Web-Toolkit/browse_thread/thread... > > //Adam > > On 22 Maj, 09:58, Richard Kennard <[email protected]> > wrote: > > > > > Hi guys, > > > In GWT 1.5 and earlier, I have been unit testing my click handlers as > > explained on my blog here... > > >http://kennardconsulting.blogspot.com/2008/05/firing-onclicklisteners... > > > ...this little hack no longer works in 1.6, because > > FocusWidget::fireClickListeners is gone - replaced by (I assume) > > FocusWidget::fireEvent. So my hack would become... > > > native void fireEvent( FocusWidget focusWidget, GwtEvent<?> event ) > > /*-{ > > [email protected]::fireEvent > > (Lcom/google/gwt/event/shared/GwtEvent;)( event ); > > > }-*/; > > > The problem is I can't instantiate a ClickEvent so I'm stuck how to > > call this. Is there a better way to unit test click handlers in 1.6? > > > Regards, > > > Richard.- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
