Colin Alworth
unread,Jan 24, 2012, 6:31:42 PM1/24/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-we...@googlegroups.com
GwtTestCase has support for waiting until an asynchronous part of the test is complete - check out the delayTestFinish(int) and finishTest() methods.
Beyond that, there really is no way to generally pause execution. You can use one timer to watch another timer, and call cancel on it if it runs for too long, though because JavaScript is singly threaded, you can't cancel something already in progress. For that, you want to break up your command into smaller pieces (using something like the Scheduler and RepeatingCommand).