|
|
@ -84,19 +84,14 @@ void main() {
|
|
|
|
flameTester.test(
|
|
|
|
flameTester.test(
|
|
|
|
'loads children correctly',
|
|
|
|
'loads children correctly',
|
|
|
|
(game) async {
|
|
|
|
(game) async {
|
|
|
|
|
|
|
|
final component = Component();
|
|
|
|
final googleLetter = GoogleLetter(
|
|
|
|
final googleLetter = GoogleLetter(
|
|
|
|
1,
|
|
|
|
1,
|
|
|
|
children: [
|
|
|
|
children: [component],
|
|
|
|
TimerComponent(period: 10),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
await game.ready();
|
|
|
|
|
|
|
|
await game.ensureAdd(googleLetter);
|
|
|
|
await game.ensureAdd(googleLetter);
|
|
|
|
|
|
|
|
|
|
|
|
expect(
|
|
|
|
expect(googleLetter.children.contains(component), isTrue);
|
|
|
|
googleLetter.children.whereType<TimerComponent>().length,
|
|
|
|
|
|
|
|
equals(1),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|