Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 6d41b2f

Browse files
authored
update Scene.toImageSync test to use proper bounds in the request (#37638)
1 parent af6e47f commit 6d41b2f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

testing/dart/compositing_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@ void main() {
4242
builder.addTexture(0, width: 10, height: 10);
4343

4444
final Scene scene = builder.build();
45-
final Image image = scene.toImageSync(10, 10);
45+
final Image image = scene.toImageSync(20, 20);
4646
scene.dispose();
4747

48-
expect(image.width, 10);
49-
expect(image.height, 10);
48+
expect(image.width, 20);
49+
expect(image.height, 20);
5050

5151
final ByteData? data = await image.toByteData();
5252

5353
expect(data, isNotNull);
54-
expect(data!.lengthInBytes, 10 * 10 * 4);
54+
expect(data!.lengthInBytes, 20 * 20 * 4);
5555
expect(data.buffer.asUint8List()[0], 0);
5656
expect(data.buffer.asUint8List()[1], 0);
5757
expect(data.buffer.asUint8List()[2], 0);

0 commit comments

Comments
 (0)