Wednesday, February 22, 2012

Re: why hasn't GWT an interface for Node or Element?

On 22 February 2012 04:34, salk31 <salk31@gmail.com> wrote:
> Do you mean something like:
> http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/DOM.html
> http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/Element.html
> ?

The OP asked for *interfaces* not classes.

Unfortunately, a lot of the GWT code base is either native, static, or
in an abstract class. This really hinders easy unit testing.
Interfaces would help alleviate (some of) the pain. Luckily, more and
more interfaces are appearing so hopefully after a few more releases
we'll have something that is easier to test.

Until then, you have to write your own. Usually, it's not hard; it
just should not be necessary.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment