Skip to content

Commit

Permalink
Fix breakages introduced by SplashFactory (#6952)
Browse files Browse the repository at this point in the history
Preparing for:
- flutter/flutter#149963
  • Loading branch information
nate-thegrate authored Aug 13, 2024
1 parent bd5a33a commit 66e98d8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions packages/animations/test/open_container_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void main() {
));

// Closed container has the expected properties.
final StatefulElement srcMaterialElement = tester.firstElement(
final Element srcMaterialElement = tester.firstElement(
find.ancestor(
of: find.text('Closed'),
matching: find.byType(Material),
Expand All @@ -62,7 +62,7 @@ void main() {
await tester.pump();

// On the first frame of the animation everything still looks like before.
final StatefulElement destMaterialElement = tester.firstElement(
final Element destMaterialElement = tester.firstElement(
find.ancestor(
of: find.text('Closed'),
matching: find.byType(Material),
Expand Down Expand Up @@ -162,7 +162,7 @@ void main() {
await tester.pump(const Duration(milliseconds: 1));
expect(find.text('Closed'), findsNothing); // No longer in the tree.
expect(find.text('Open'), findsOneWidget);
final StatefulElement finalMaterialElement = tester.firstElement(
final Element finalMaterialElement = tester.firstElement(
find.ancestor(
of: find.text('Open'),
matching: find.byType(Material),
Expand Down Expand Up @@ -213,7 +213,7 @@ void main() {
// Open container has the expected properties.
expect(find.text('Closed'), findsNothing);
expect(find.text('Open'), findsOneWidget);
final StatefulElement initialMaterialElement = tester.firstElement(
final Element initialMaterialElement = tester.firstElement(
find.ancestor(
of: find.text('Open'),
matching: find.byType(Material),
Expand All @@ -237,7 +237,7 @@ void main() {

expect(find.text('Closed'), findsOneWidget);
expect(find.text('Open'), findsOneWidget);
final StatefulElement materialElement = tester.firstElement(
final Element materialElement = tester.firstElement(
find.ancestor(
of: find.text('Open'),
matching: find.byType(Material),
Expand Down Expand Up @@ -328,7 +328,7 @@ void main() {
await tester.pump(const Duration(milliseconds: 1));
expect(find.text('Open'), findsNothing); // No longer in the tree.
expect(find.text('Closed'), findsOneWidget);
final StatefulElement finalMaterialElement = tester.firstElement(
final Element finalMaterialElement = tester.firstElement(
find.ancestor(
of: find.text('Closed'),
matching: find.byType(Material),
Expand Down Expand Up @@ -380,7 +380,7 @@ void main() {
));

// Closed container has the expected properties.
final StatefulElement srcMaterialElement = tester.firstElement(
final Element srcMaterialElement = tester.firstElement(
find.ancestor(
of: find.text('Closed'),
matching: find.byType(Material),
Expand All @@ -405,7 +405,7 @@ void main() {
await tester.pump();

// On the first frame of the animation everything still looks like before.
final StatefulElement destMaterialElement = tester.firstElement(
final Element destMaterialElement = tester.firstElement(
find.ancestor(
of: find.text('Closed'),
matching: find.byType(Material),
Expand Down Expand Up @@ -509,7 +509,7 @@ void main() {
await tester.pump(const Duration(milliseconds: 1));
expect(find.text('Closed'), findsNothing); // No longer in the tree.
expect(find.text('Open'), findsOneWidget);
final StatefulElement finalMaterialElement = tester.firstElement(
final Element finalMaterialElement = tester.firstElement(
find.ancestor(
of: find.text('Open'),
matching: find.byType(Material),
Expand Down Expand Up @@ -558,7 +558,7 @@ void main() {
// Open container has the expected properties.
expect(find.text('Closed'), findsNothing);
expect(find.text('Open'), findsOneWidget);
final StatefulElement initialMaterialElement = tester.firstElement(
final Element initialMaterialElement = tester.firstElement(
find.ancestor(
of: find.text('Open'),
matching: find.byType(Material),
Expand All @@ -583,7 +583,7 @@ void main() {

expect(find.text('Closed'), findsOneWidget);
expect(find.text('Open'), findsOneWidget);
final StatefulElement materialElement = tester.firstElement(
final Element materialElement = tester.firstElement(
find.ancestor(
of: find.text('Open'),
matching: find.byType(Material),
Expand Down Expand Up @@ -684,7 +684,7 @@ void main() {
await tester.pump(const Duration(milliseconds: 1));
expect(find.text('Open'), findsNothing); // No longer in the tree.
expect(find.text('Closed'), findsOneWidget);
final StatefulElement finalMaterialElement = tester.firstElement(
final Element finalMaterialElement = tester.firstElement(
find.ancestor(
of: find.text('Closed'),
matching: find.byType(Material),
Expand Down

0 comments on commit 66e98d8

Please sign in to comment.