Regression tests should verify that debug are not set (#7090)

This commit is contained in:
Hans Muller
2016-11-29 15:17:51 -08:00
committed by GitHub
parent 94de7e30b3
commit 440ddef69e
4 changed files with 118 additions and 11 deletions

View File

@@ -395,6 +395,15 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
assert(debugAssertNoTransientCallbacks(
'An animation is still running even after the widget tree was disposed.'
));
assert(debugAssertAllRenderVarsUnset(
'The value of a rendering debug variable was changed by the test.'
));
assert(debugAssertAllWidgetVarsUnset(
'The value of a widget debug variable was changed by the test.'
));
assert(debugAssertAllSchedulerVarsUnset(
'The value of a scheduler debug variable was changed by the test.'
));
}
/// Called by the [testWidgets] function after a test is executed.