Fix bug thattimeDilation is not reset, causing subsequent test errors, and add verifications to ensure such problem does not exist in the future (#113830)

This commit is contained in:
fzyzcjy
2022-11-02 06:50:00 +08:00
committed by GitHub
parent c23b5ca7db
commit 61deaef5df
6 changed files with 40 additions and 0 deletions

View File

@@ -965,6 +965,9 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
assert(debugAssertNoPendingPerformanceModeRequests(
'A performance mode was requested and not disposed by a test.'
));
assert(debugAssertNoTimeDilation(
'The timeDilation was changed and not reset by the test.'
));
assert(debugAssertAllFoundationVarsUnset(
'The value of a foundation debug variable was changed by the test.',
debugPrintOverride: debugPrintOverride,