Regression tests should verify that debug are not set (#7090)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user