We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af6e47f commit 6d41b2fCopy full SHA for 6d41b2f
testing/dart/compositing_test.dart
@@ -42,16 +42,16 @@ void main() {
42
builder.addTexture(0, width: 10, height: 10);
43
44
final Scene scene = builder.build();
45
- final Image image = scene.toImageSync(10, 10);
+ final Image image = scene.toImageSync(20, 20);
46
scene.dispose();
47
48
- expect(image.width, 10);
49
- expect(image.height, 10);
+ expect(image.width, 20);
+ expect(image.height, 20);
50
51
final ByteData? data = await image.toByteData();
52
53
expect(data, isNotNull);
54
- expect(data!.lengthInBytes, 10 * 10 * 4);
+ expect(data!.lengthInBytes, 20 * 20 * 4);
55
expect(data.buffer.asUint8List()[0], 0);
56
expect(data.buffer.asUint8List()[1], 0);
57
expect(data.buffer.asUint8List()[2], 0);
0 commit comments