Unverified Commit ccf6f035 authored by Tong Mu's avatar Tong Mu Committed by GitHub

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

This reverts commit 7707f423.
parent 8d8959f9
...@@ -889,11 +889,6 @@ abstract class TestWidgetsFlutterBinding extends BindingBase ...@@ -889,11 +889,6 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
_parentZone = null; _parentZone = null;
buildOwner!.focusManager.dispose(); buildOwner!.focusManager.dispose();
buildOwner!.focusManager = FocusManager()..registerGlobalHandlers(); 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 // Disabling the warning because @visibleForTesting doesn't take the testing
// framework itself into account, but we don't want it visible outside of // framework itself into account, but we don't want it visible outside of
// tests. // tests.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment