I have started writing a few tests, and I have successfully confirmed
that the events I expect to see fired are fired. I`m using variations
on
public void testEventFired() {
delayTestFinish(2000);
Foo myFoo = new Foo();
myFoo.addChangeHander(new ChangeHandler() {
public void onChange(ChangeEvent event) {
// assert that all the parts of the event are set correctly
finishTest();
}
});
myFoo.doThingThatTriggersChangeEvent();
}
Now I'd like to test that myFoo.doThingThatDoesNotTriggerChangeEvent()
doesn't fire a ChangeEvent. I have to wait to give the event a chance
to fire, but when the delay runs out, I want the test to be successful
instead of fail.
Is there any way to do that?
Thank you,
Nancy Deschenes
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---