mirror of https://github.com/flutter/pinball.git
parent
0a3e485d67
commit
2584e3fe20
@ -0,0 +1,31 @@
|
|||||||
|
// ignore_for_file: cascade_invocations
|
||||||
|
|
||||||
|
import 'package:flame_forge2d/flame_forge2d.dart';
|
||||||
|
import 'package:flame_test/flame_test.dart';
|
||||||
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
|
import 'package:pinball_components/pinball_components.dart';
|
||||||
|
|
||||||
|
import '../../helpers/helpers.dart';
|
||||||
|
|
||||||
|
void main() {
|
||||||
|
group('Boundaries', () {
|
||||||
|
final tester = FlameTester(TestGame.new);
|
||||||
|
|
||||||
|
tester.testGameWidget(
|
||||||
|
'render correctly',
|
||||||
|
setUp: (game, tester) async {
|
||||||
|
await game.addFromBlueprint(Boundaries());
|
||||||
|
await game.ready();
|
||||||
|
game.camera.followVector2(Vector2.zero());
|
||||||
|
game.camera.zoom = 3.9;
|
||||||
|
},
|
||||||
|
// TODO(allisonryan0002): enable test when workflows are fixed.
|
||||||
|
// verify: (game, tester) async {
|
||||||
|
// await expectLater(
|
||||||
|
// find.byGame<Forge2DGame>(),
|
||||||
|
// matchesGoldenFile('golden/boundaries.png'),
|
||||||
|
// );
|
||||||
|
// },
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
After Width: | Height: | Size: 324 KiB |
Loading…
Reference in new issue