diff --git a/testing/dart/encoding_test.dart b/testing/dart/encoding_test.dart index d318163ec5695..c33b7cecb217a 100644 --- a/testing/dart/encoding_test.dart +++ b/testing/dart/encoding_test.dart @@ -114,7 +114,7 @@ class GrayscaleImage { GrayscaleImage._(); static Future load() async { - final Uint8List bytes = await readFile('4x4.png'); + final Uint8List bytes = await readFile('2x2.png'); final Completer completer = Completer(); decodeImageFromList(bytes, (Image image) => completer.complete(image)); return await completer.future; diff --git a/testing/dart/image_descriptor_test.dart b/testing/dart/image_descriptor_test.dart index e888ee26ee46a..67ad8b28e9d9f 100644 --- a/testing/dart/image_descriptor_test.dart +++ b/testing/dart/image_descriptor_test.dart @@ -13,7 +13,7 @@ import 'package:test/test.dart'; void main() { test('basic image descriptor - encoded - greyscale', () async { - final Uint8List bytes = await readFile('4x4.png'); + final Uint8List bytes = await readFile('2x2.png'); final ImmutableBuffer buffer = await ImmutableBuffer.fromUint8List(bytes); final ImageDescriptor descriptor = await ImageDescriptor.encoded(buffer); diff --git a/testing/dart/image_resize_test.dart b/testing/dart/image_resize_test.dart index c631a6c15c485..f864ea03305ad 100644 --- a/testing/dart/image_resize_test.dart +++ b/testing/dart/image_resize_test.dart @@ -19,7 +19,7 @@ void main() { }()); test('no resize by default', () async { - final Uint8List bytes = await readFile('4x4.png'); + final Uint8List bytes = await readFile('2x2.png'); final Codec codec = await instantiateImageCodec(bytes); final FrameInfo frame = await codec.getNextFrame(); final int codecHeight = frame.image.height; @@ -29,7 +29,7 @@ void main() { }); test('resize width with constrained height', () async { - final Uint8List bytes = await readFile('4x4.png'); + final Uint8List bytes = await readFile('2x2.png'); final Codec codec = await instantiateImageCodec(bytes, targetHeight: 1); final FrameInfo frame = await codec.getNextFrame(); final int codecHeight = frame.image.height; @@ -39,7 +39,7 @@ void main() { }); test('resize height with constrained width', () async { - final Uint8List bytes = await readFile('4x4.png'); + final Uint8List bytes = await readFile('2x2.png'); final Codec codec = await instantiateImageCodec(bytes, targetWidth: 1); final FrameInfo frame = await codec.getNextFrame(); final int codecHeight = frame.image.height; @@ -49,7 +49,7 @@ void main() { }); test('upscale image by 5x', () async { - final Uint8List bytes = await readFile('4x4.png'); + final Uint8List bytes = await readFile('2x2.png'); final Codec codec = await instantiateImageCodec(bytes, targetWidth: 10, allowUpscaling: true); final FrameInfo frame = await codec.getNextFrame(); final int codecHeight = frame.image.height; @@ -59,7 +59,7 @@ void main() { }); test('upscale image by 5x - no upscaling', () async { - final Uint8List bytes = await readFile('4x4.png'); + final Uint8List bytes = await readFile('2x2.png'); final Codec codec = await instantiateImageCodec(bytes, targetWidth: 10, allowUpscaling: false); final FrameInfo frame = await codec.getNextFrame(); final int codecHeight = frame.image.height; @@ -69,7 +69,7 @@ void main() { }); test('upscale image varying width and height', () async { - final Uint8List bytes = await readFile('4x4.png'); + final Uint8List bytes = await readFile('2x2.png'); final Codec codec = await instantiateImageCodec(bytes, targetWidth: 10, targetHeight: 1, allowUpscaling: true); final FrameInfo frame = await codec.getNextFrame(); @@ -80,7 +80,7 @@ void main() { }); test('upscale image varying width and height - no upscaling', () async { - final Uint8List bytes = await readFile('4x4.png'); + final Uint8List bytes = await readFile('2x2.png'); final Codec codec = await instantiateImageCodec(bytes, targetWidth: 10, targetHeight: 1, allowUpscaling: false); final FrameInfo frame = await codec.getNextFrame(); diff --git a/testing/resources/4x4.png b/testing/resources/2x2.png similarity index 100% rename from testing/resources/4x4.png rename to testing/resources/2x2.png