Fix test lifecycle clean up for screen size and semantics. (#62761)

This commit is contained in:
Darren Austin
2020-08-03 16:31:05 -07:00
committed by GitHub
parent 26f976f569
commit 0367d4f57c
2 changed files with 7 additions and 10 deletions

View File

@@ -232,7 +232,9 @@ void main() {
Future<void> _showPicker(WidgetTester tester, Locale locale, Size size) async {
tester.binding.window.physicalSizeTestValue = size;
addTearDown(tester.binding.window.clearPhysicalSizeTestValue);
tester.binding.window.devicePixelRatioTestValue = 1.0;
addTearDown(tester.binding.window.clearDevicePixelRatioTestValue);
await tester.pumpWidget(
MaterialApp(
home: Builder(