Just like you're "waiting" for getNode to get back, but here using events: 
add a FormPanel.SubmitCompleteHandler to your FormPanel and only call 
finishTest from there. The handler will be called when the server responds 
to the form submission, so either it works and you can have asserts and 
then finishTest() (in the normal case), or it somehow breaks (there's 
little to no reason, but who knows) and your test will fail in timeout 
(because finishTest will never be called before the timeout expires).

-- 
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/-/8OKkfMAg_lIJ.
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.

Reply via email to