Fix DPR in test view configuration (#88609)

This commit is contained in:
Dan Field
2021-08-24 14:26:54 -07:00
committed by GitHub
parent 9a190e5b39
commit 5feee0d8fa
4 changed files with 8 additions and 12 deletions

View File

@@ -126,11 +126,10 @@ Future<void> main() async {
});
});
// TODO(jiahaog): Remove when https://github.com/flutter/flutter/issues/66006 is fixed.
testWidgets('root widgets are wrapped with a RepaintBoundary', (WidgetTester tester) async {
testWidgets('root view reports correct dimensions', (WidgetTester tester) async {
await tester.pumpWidget(const Placeholder());
expect(find.byType(RepaintBoundary), findsOneWidget);
expect(tester.binding.renderView.paintBounds, const Rect.fromLTWH(0, 0, 2400, 1800));
});
});