Test harness should check for running Timers and AnimationControllers
After running a widget test, we now clear out the widget tree and check that we didn't leak any timers or animations. Also, fix several bugs that this addtional check revealed. Fixes #2481
This commit is contained in:
@@ -22,6 +22,10 @@ void main() {
|
||||
tester.setLocale("es", "US");
|
||||
tester.pump();
|
||||
expect(tab.widget.data, equals("MERCADO"));
|
||||
|
||||
// TODO(abarth): We're leaking an animation. We should track down the leak
|
||||
// and plug it rather than waiting for the animation to end here.
|
||||
tester.pump(const Duration(seconds: 1));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user