|
|
|
@ -20,6 +20,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),
|
|
|
|
@ -40,6 +41,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'has a color when is specified',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
const defaultColor = Colors.blue;
|
|
|
|
|
|
|
|
|
|
final pathway = Pathway.straight(
|
|
|
|
@ -61,6 +63,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'loads correctly',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
final pathway = Pathway.straight(
|
|
|
|
|
position: Vector2.zero(),
|
|
|
|
|
start: Vector2(10, 10),
|
|
|
|
@ -77,6 +80,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'positions correctly',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
final position = Vector2.all(10);
|
|
|
|
|
final pathway = Pathway.straight(
|
|
|
|
|
position: position,
|
|
|
|
@ -94,6 +98,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'is static',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
final pathway = Pathway.straight(
|
|
|
|
|
position: Vector2.zero(),
|
|
|
|
|
start: Vector2(10, 10),
|
|
|
|
@ -111,6 +116,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),
|
|
|
|
@ -130,6 +136,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),
|
|
|
|
@ -152,6 +159,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'loads correctly',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
final pathway = Pathway.arc(
|
|
|
|
|
position: Vector2.zero(),
|
|
|
|
|
width: width,
|
|
|
|
@ -168,6 +176,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'positions correctly',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
final position = Vector2.all(10);
|
|
|
|
|
final pathway = Pathway.arc(
|
|
|
|
|
position: position,
|
|
|
|
@ -185,6 +194,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'is static',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
final pathway = Pathway.arc(
|
|
|
|
|
position: Vector2.zero(),
|
|
|
|
|
width: width,
|
|
|
|
@ -210,6 +220,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'loads correctly',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
final pathway = Pathway.bezierCurve(
|
|
|
|
|
position: Vector2.zero(),
|
|
|
|
|
controlPoints: controlPoints,
|
|
|
|
@ -225,6 +236,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'positions correctly',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
final position = Vector2.all(10);
|
|
|
|
|
final pathway = Pathway.bezierCurve(
|
|
|
|
|
position: position,
|
|
|
|
@ -241,6 +253,7 @@ void main() {
|
|
|
|
|
flameTester.test(
|
|
|
|
|
'is static',
|
|
|
|
|
(game) async {
|
|
|
|
|
await game.ready();
|
|
|
|
|
final pathway = Pathway.bezierCurve(
|
|
|
|
|
position: Vector2.zero(),
|
|
|
|
|
controlPoints: controlPoints,
|
|
|
|
|