Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a2c7fcc

Browse files
Update page_test.dart
1 parent 4feaf46 commit a2c7fcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/flutter/test/material/page_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ void main() {
240240
late Size oldSize;
241241
try {
242242
oldSize = tester.binding.window.physicalSize;
243-
tester.binding.window.physicalSizeTestValue = const Size(100, 100);
243+
tester.binding.window.physicalSizeTestValue = const Size(1000, 1000);
244244

245245
final Key key = GlobalKey();
246246
await tester.pumpWidget(
@@ -268,7 +268,7 @@ void main() {
268268
await expectLater(find.byKey(key), matchesGoldenFile('zoom_page_transition.small.png'));
269269

270270
// Increase the window size.
271-
tester.binding.window.physicalSizeTestValue = const Size(400, 400);
271+
tester.binding.window.physicalSizeTestValue = const Size(1000, 2000);
272272

273273
await tester.pump();
274274
await tester.pump(const Duration(milliseconds: 50));

0 commit comments

Comments
 (0)