On Tuesday, April 24, 2012 10:50:45 PM UTC+2, King_V wrote: > > Ok, I found some old messages (several years old) that says this > cannot be done. > > However, when I look at: > > https://developers.google.com/web-toolkit/doc/latest/DevGuideTesting#DevGuideJUnitSetUp > > > this seems to imply that you can actually test GUI items on a browser > with such tests. I might well be completely misinterpreting what it's > there for, though. > > However, I'm baffled as to how to do so. > > For example, I might normally put MyWidget into the RootPanel as > follows: > > RootPanel.get().add(new MyWidget("Some text here")); > > > But how would I do this in a JUnit test case / GWTTestCase? >
The same. Have a look at the unit tests for the built-in widgets: http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/test/com/google/gwt/user/client/ui/ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/gC_6o42TzxwJ. 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.