Skip to content

Commit

Permalink
test: Fix size of virtual window in test
Browse files Browse the repository at this point in the history
  • Loading branch information
spydon committed Nov 21, 2023
1 parent 7a0d63f commit 51c1e69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/app_center/test/test_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ extension WidgetTesterX on WidgetTester {
BuildContext get context => element(find.byType(Scaffold).first);
AppLocalizations get l10n => AppLocalizations.of(context);
Future<void> pumpApp(WidgetBuilder builder) async {
view.physicalSize = view.physicalSize * 5;
// The intended minimum size of the window.
view.physicalSize =
(Size(800, 600) + Offset(54, 54)) * view.devicePixelRatio;
final ubuntuRegular = File('test/fonts/Ubuntu-Regular.ttf');
final content = ByteData.view(
Uint8List.fromList(ubuntuRegular.readAsBytesSync()).buffer);
Expand Down

0 comments on commit 51c1e69

Please sign in to comment.