Revert "Restores surface size in the postTest of test binding (#87240)" (#87258)

This reverts commit 7707f42318.
This commit is contained in:
Tong Mu 2021-07-29 01:50:54 -07:00 committed by GitHub
parent 8d8959f93c
commit ccf6f0353a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -889,11 +889,6 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
_parentZone = null;
buildOwner!.focusManager.dispose();
buildOwner!.focusManager = FocusManager()..registerGlobalHandlers();
// Reset surface size. The renderview configuration is tied with it and
// needs to be recreated. Don't use [handleMetricsChanged] because it
// introduces unwanted side effects.
_surfaceSize = null;
renderView.configuration = createViewConfiguration();
// Disabling the warning because @visibleForTesting doesn't take the testing
// framework itself into account, but we don't want it visible outside of
// tests.