Skip to content

Commit

Permalink
Update test (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
goderbauer authored Feb 29, 2024
1 parent 91b0784 commit a5665a3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/diagram_capture/test/diagram_capture_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ void main() {
expect(decodedImage.height, equals(50));
expect(decodedImage.length, equals(5000));
final image.Pixel testPixel = decodedImage.getRange(50, 10, 1, 1).current;
expect(testPixel.a, equals(0xff));
expect(testPixel.r, equals(0x1c));
expect(testPixel.g, equals(0x1b));
expect(testPixel.b, equals(0x1f));
expect(testPixel.a, equals(0xfe));
expect(testPixel.r, equals(0xed));
expect(testPixel.g, equals(0xbe));
expect(testPixel.b, equals(0xef));
});

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

test('can inject gestures', () async {
Expand Down Expand Up @@ -219,7 +219,7 @@ void main() {
Widget buildStaticDiagram(BuildContext context) {
return Container(
constraints: BoxConstraints.tight(const Size(100.0, 50.0)),
child: const Text('Diagram'),
color: const Color(0xfeedbeef),
);
}

Expand Down

0 comments on commit a5665a3

Please sign in to comment.