Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix the tests
  • Loading branch information
ValentinVignal committed Jan 18, 2025
commit cce339e983eb4cc15f0384a4b6eb2e9e36a041fb
10 changes: 7 additions & 3 deletions packages/vector_graphics/test/vector_graphics_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,9 @@ void main() {
);
await tester.pumpAndSettle();

expect(await completer.future, isA<PictureInfo>());
final PictureInfo picture = await completer.future;
addTearDown(picture.picture.dispose);
expect(picture, isA<PictureInfo>());
expect(debugLastLocale, const Locale('fr', 'CH'));
expect(debugLastTextDirection, TextDirection.rtl);
});
Expand Down Expand Up @@ -475,7 +477,9 @@ void main() {
);
await tester.pumpAndSettle();

expect(await completer.future, isA<PictureInfo>());
final PictureInfo picture = await completer.future;
addTearDown(picture.picture.dispose);
expect(picture, isA<PictureInfo>());
expect(debugLastLocale, PlatformDispatcher.instance.locale);
expect(debugLastTextDirection, TextDirection.ltr);
});
Expand Down Expand Up @@ -584,7 +588,7 @@ void main() {
expect(imageCache.statusForKey(imageKey).live, false);
expect(imageCache.statusForKey(imageKey).keepAlive, true);

// A blue square, becuase the image is available now.
// A blue square, because the image is available now.
await expectLater(
find.byKey(key),
matchesGoldenFile('vg_with_image_blue.png'),
Expand Down