From ccf6f0353ad605f04e9a2db0d025824f14362a4a Mon Sep 17 00:00:00 2001 From: Tong Mu Date: Thu, 29 Jul 2021 01:50:54 -0700 Subject: [PATCH] Revert "Restores surface size in the postTest of test binding (#87240)" (#87258) This reverts commit 7707f42318543a6ced4fa7a30fbf85509557a73c. --- packages/flutter_test/lib/src/binding.dart | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/flutter_test/lib/src/binding.dart b/packages/flutter_test/lib/src/binding.dart index a3c94d0514..8c34a61bf9 100644 --- a/packages/flutter_test/lib/src/binding.dart +++ b/packages/flutter_test/lib/src/binding.dart @@ -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.