|
|
|
@ -18,6 +18,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'has transparent color by default when no color is specified',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
final pathway = Pathway.straight(
|
|
|
|
|
position: Vector2.zero(),
|
|
|
|
|
start: Vector2(10, 10),
|
|
|
|
@ -38,6 +39,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'has a color when is specified',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
const defaultColor = Colors.blue;
|
|
|
|
|
|
|
|
|
|
final pathway = Pathway.straight(
|
|
|
|
@ -59,6 +61,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'loads correctly',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
final pathway = Pathway.straight(
|
|
|
|
|
position: Vector2.zero(),
|
|
|
|
|
start: Vector2(10, 10),
|
|
|
|
@ -75,6 +78,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'positions correctly',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
final position = Vector2.all(10);
|
|
|
|
|
final pathway = Pathway.straight(
|
|
|
|
|
position: position,
|
|
|
|
@ -92,6 +96,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'is static',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
final pathway = Pathway.straight(
|
|
|
|
|
position: Vector2.zero(),
|
|
|
|
|
start: Vector2(10, 10),
|
|
|
|
@ -109,6 +114,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'has only one ChainShape when singleWall is true',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
final pathway = Pathway.straight(
|
|
|
|
|
position: Vector2.zero(),
|
|
|
|
|
start: Vector2(10, 10),
|
|
|
|
@ -128,6 +134,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'has two ChainShape when singleWall is false (default)',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
final pathway = Pathway.straight(
|
|
|
|
|
position: Vector2.zero(),
|
|
|
|
|
start: Vector2(10, 10),
|
|
|
|
@ -150,6 +157,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'loads correctly',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
final pathway = Pathway.arc(
|
|
|
|
|
position: Vector2.zero(),
|
|
|
|
|
width: width,
|
|
|
|
@ -166,6 +174,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'positions correctly',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
final position = Vector2.all(10);
|
|
|
|
|
final pathway = Pathway.arc(
|
|
|
|
|
position: position,
|
|
|
|
@ -183,6 +192,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'is static',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
final pathway = Pathway.arc(
|
|
|
|
|
position: Vector2.zero(),
|
|
|
|
|
width: width,
|
|
|
|
@ -208,6 +218,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'loads correctly',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
final pathway = Pathway.bezierCurve(
|
|
|
|
|
position: Vector2.zero(),
|
|
|
|
|
controlPoints: controlPoints,
|
|
|
|
@ -223,6 +234,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'positions correctly',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
final position = Vector2.all(10);
|
|
|
|
|
final pathway = Pathway.bezierCurve(
|
|
|
|
|
position: position,
|
|
|
|
@ -239,6 +251,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'is static',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
final pathway = Pathway.bezierCurve(
|
|
|
|
|
position: Vector2.zero(),
|
|
|
|
|
controlPoints: controlPoints,
|
|
|
|
|