Skip to content

Commit a5665a3

Browse files
authored
Update test (#242)
1 parent 91b0784 commit a5665a3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

packages/diagram_capture/test/diagram_capture_test.dart

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ void main() {
7373
expect(decodedImage.height, equals(50));
7474
expect(decodedImage.length, equals(5000));
7575
final image.Pixel testPixel = decodedImage.getRange(50, 10, 1, 1).current;
76-
expect(testPixel.a, equals(0xff));
77-
expect(testPixel.r, equals(0x1c));
78-
expect(testPixel.g, equals(0x1b));
79-
expect(testPixel.b, equals(0x1f));
76+
expect(testPixel.a, equals(0xfe));
77+
expect(testPixel.r, equals(0xed));
78+
expect(testPixel.g, equals(0xbe));
79+
expect(testPixel.b, equals(0xef));
8080
});
8181

8282
test('can create images from an animated widget', () async {
@@ -173,10 +173,10 @@ void main() {
173173
expect(decodedImage.length, equals(45000));
174174
final image.Pixel testPixel =
175175
decodedImage.getRange(150, 20, 1, 1).current;
176-
expect(testPixel.a, equals(0xff));
177-
expect(testPixel.r, equals(0x1c));
178-
expect(testPixel.g, equals(0x1b));
179-
expect(testPixel.b, equals(0x1f));
176+
expect(testPixel.a, equals(0xfe));
177+
expect(testPixel.r, equals(0xed));
178+
expect(testPixel.g, equals(0xbe));
179+
expect(testPixel.b, equals(0xef));
180180
});
181181

182182
test('can inject gestures', () async {
@@ -219,7 +219,7 @@ void main() {
219219
Widget buildStaticDiagram(BuildContext context) {
220220
return Container(
221221
constraints: BoxConstraints.tight(const Size(100.0, 50.0)),
222-
child: const Text('Diagram'),
222+
color: const Color(0xfeedbeef),
223223
);
224224
}
225225

0 commit comments

Comments
 (0)