Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
7707f423
Unverified
Commit
7707f423
authored
Jul 29, 2021
by
Tong Mu
Committed by
GitHub
Jul 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restores surface size in the postTest of test binding (#87240)
parent
2f916790
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
binding.dart
packages/flutter_test/lib/src/binding.dart
+5
-0
No files found.
packages/flutter_test/lib/src/binding.dart
View file @
7707f423
...
@@ -889,6 +889,11 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
...
@@ -889,6 +889,11 @@ 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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment