From 87e6c95c55b7f1c9a6cdaa4bcf93a0cf4e03ec4e Mon Sep 17 00:00:00 2001 From: Jim Graham Date: Tue, 15 Nov 2022 12:59:18 -0800 Subject: [PATCH] update Scene.toImageSync test to use proper bounds in the request (flutter/engine#37638) --- engine/src/flutter/testing/dart/compositing_test.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/src/flutter/testing/dart/compositing_test.dart b/engine/src/flutter/testing/dart/compositing_test.dart index cb65eb0ed44..a679a40e27e 100644 --- a/engine/src/flutter/testing/dart/compositing_test.dart +++ b/engine/src/flutter/testing/dart/compositing_test.dart @@ -42,16 +42,16 @@ void main() { builder.addTexture(0, width: 10, height: 10); final Scene scene = builder.build(); - final Image image = scene.toImageSync(10, 10); + final Image image = scene.toImageSync(20, 20); scene.dispose(); - expect(image.width, 10); - expect(image.height, 10); + expect(image.width, 20); + expect(image.height, 20); final ByteData? data = await image.toByteData(); expect(data, isNotNull); - expect(data!.lengthInBytes, 10 * 10 * 4); + expect(data!.lengthInBytes, 20 * 20 * 4); expect(data.buffer.asUint8List()[0], 0); expect(data.buffer.asUint8List()[1], 0); expect(data.buffer.asUint8List()[2], 0);