chore: update dino goldens

pull/277/head
Allison Ryan 3 years ago
parent 85f3bcedd5
commit 3af0c51b05

@ -38,31 +38,33 @@ void main() {
await tester.pump(); await tester.pump();
}, },
verify: (game, tester) async { verify: (game, tester) async {
final sweepAnimationDuration = game final swivelAnimationDuration = game
.descendants() .descendants()
.whereType<SpriteAnimationComponent>() .whereType<SpriteAnimationComponent>()
.first .first
.animation! .animation!
.totalDuration() / .totalDuration() /
2; 2;
game.update(swivelAnimationDuration);
await tester.pump();
await expectLater( await expectLater(
find.byGame<TestGame>(), find.byGame<TestGame>(),
matchesGoldenFile('golden/chrome_dino/up.png'), matchesGoldenFile('golden/chrome_dino/down.png'),
); );
game.update(sweepAnimationDuration * 0.25); game.update(swivelAnimationDuration * 0.25);
await tester.pump(); await tester.pump();
await expectLater( await expectLater(
find.byGame<TestGame>(), find.byGame<TestGame>(),
matchesGoldenFile('golden/chrome_dino/middle.png'), matchesGoldenFile('golden/chrome_dino/middle.png'),
); );
game.update(sweepAnimationDuration * 0.25); game.update(swivelAnimationDuration * 0.25);
await tester.pump(); await tester.pump();
await expectLater( await expectLater(
find.byGame<TestGame>(), find.byGame<TestGame>(),
matchesGoldenFile('golden/chrome_dino/down.png'), matchesGoldenFile('golden/chrome_dino/up.png'),
); );
}, },
); );

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Loading…
Cancel
Save