@@ -12,7 +12,6 @@ import 'package:flutter/foundation.dart';
1212import 'package:flutter/material.dart' ;
1313import 'package:flutter/rendering.dart' ;
1414import 'package:flutter_test/flutter_test.dart' ;
15- import 'package:leak_tracker_flutter_testing/leak_tracker_flutter_testing.dart' ;
1615
1716import '../widgets/semantics_tester.dart' ;
1817
@@ -644,10 +643,7 @@ void main() {
644643 );
645644 });
646645
647- testWidgets ('Fullscreen route animates correct transform values over time' ,
648- // TODO(polina-c): remove when fixed https://github.com/flutter/flutter/issues/145600 [leak-tracking-opt-in]
649- experimentalLeakTesting: LeakTesting .settings.withTracked (classes: const < String > ['CurvedAnimation' ]),
650- (WidgetTester tester) async {
646+ testWidgets ('Fullscreen route animates correct transform values over time' , (WidgetTester tester) async {
651647 await tester.pumpWidget (
652648 CupertinoApp (
653649 home: Builder (
@@ -865,17 +861,11 @@ void main() {
865861 expect (tester.getTopLeft (find.byType (Placeholder )).dx, moreOrLessEquals (- 0.0 , epsilon: 1.0 ));
866862 }
867863
868- testWidgets ('CupertinoPageRoute has parallax when non fullscreenDialog route is pushed on top' ,
869- // TODO(polina-c): remove when fixed https://github.com/flutter/flutter/issues/145600 [leak-tracking-opt-in]
870- experimentalLeakTesting: LeakTesting .settings.withTracked (classes: const < String > ['CurvedAnimation' ]),
871- (WidgetTester tester) async {
864+ testWidgets ('CupertinoPageRoute has parallax when non fullscreenDialog route is pushed on top' , (WidgetTester tester) async {
872865 await testParallax (tester, fromFullscreenDialog: false );
873866 });
874867
875- testWidgets ('FullscreenDialog CupertinoPageRoute has parallax when non fullscreenDialog route is pushed on top' ,
876- // TODO(polina-c): remove when fixed https://github.com/flutter/flutter/issues/145600 [leak-tracking-opt-in]
877- experimentalLeakTesting: LeakTesting .settings.withTracked (classes: const < String > ['CurvedAnimation' ]),
878- (WidgetTester tester) async {
868+ testWidgets ('FullscreenDialog CupertinoPageRoute has parallax when non fullscreenDialog route is pushed on top' , (WidgetTester tester) async {
879869 await testParallax (tester, fromFullscreenDialog: true );
880870 });
881871
@@ -989,17 +979,11 @@ void main() {
989979 expect (tester.getTopLeft (find.byType (Placeholder )).dx, moreOrLessEquals (0.0 , epsilon: 1.0 ));
990980 }
991981
992- testWidgets ('CupertinoPageRoute has parallax when non fullscreenDialog route is pushed on top and gets popped before the end of the animation' ,
993- // TODO(polina-c): remove when fixed https://github.com/flutter/flutter/issues/145600 [leak-tracking-opt-in]
994- experimentalLeakTesting: LeakTesting .settings.withTracked (classes: const < String > ['CurvedAnimation' ]),
995- (WidgetTester tester) async {
982+ testWidgets ('CupertinoPageRoute has parallax when non fullscreenDialog route is pushed on top and gets popped before the end of the animation' , (WidgetTester tester) async {
996983 await testParallax (tester, fromFullscreenDialog: false );
997984 });
998985
999- testWidgets ('FullscreenDialog CupertinoPageRoute has parallax when non fullscreenDialog route is pushed on top and gets popped before the end of the animation' ,
1000- // TODO(polina-c): remove when fixed https://github.com/flutter/flutter/issues/145600 [leak-tracking-opt-in]
1001- experimentalLeakTesting: LeakTesting .settings.withTracked (classes: const < String > ['CurvedAnimation' ]),
1002- (WidgetTester tester) async {
986+ testWidgets ('FullscreenDialog CupertinoPageRoute has parallax when non fullscreenDialog route is pushed on top and gets popped before the end of the animation' , (WidgetTester tester) async {
1003987 await testParallax (tester, fromFullscreenDialog: true );
1004988 });
1005989 });
@@ -1085,24 +1069,15 @@ void main() {
10851069 expect (tester.getTopLeft (find.byType (Placeholder )).dx, 0.0 );
10861070 }
10871071
1088- testWidgets ('CupertinoPageRoute has no parallax when fullscreenDialog route is pushed on top' ,
1089- // TODO(polina-c): remove when fixed https://github.com/flutter/flutter/issues/145600 [leak-tracking-opt-in]
1090- experimentalLeakTesting: LeakTesting .settings.withTracked (classes: const < String > ['CurvedAnimation' ]),
1091- (WidgetTester tester) async {
1072+ testWidgets ('CupertinoPageRoute has no parallax when fullscreenDialog route is pushed on top' , (WidgetTester tester) async {
10921073 await testNoParallax (tester, fromFullscreenDialog: false );
10931074 });
10941075
1095- testWidgets ('FullscreenDialog CupertinoPageRoute has no parallax when fullscreenDialog route is pushed on top' ,
1096- // TODO(polina-c): remove when fixed https://github.com/flutter/flutter/issues/145600 [leak-tracking-opt-in]
1097- experimentalLeakTesting: LeakTesting .settings.withTracked (classes: const < String > ['CurvedAnimation' ]),
1098- (WidgetTester tester) async {
1076+ testWidgets ('FullscreenDialog CupertinoPageRoute has no parallax when fullscreenDialog route is pushed on top' , (WidgetTester tester) async {
10991077 await testNoParallax (tester, fromFullscreenDialog: true );
11001078 });
11011079
1102- testWidgets ('Animated push/pop is not linear' ,
1103- // TODO(polina-c): remove when fixed https://github.com/flutter/flutter/issues/145600 [leak-tracking-opt-in]
1104- experimentalLeakTesting: LeakTesting .settings.withTracked (classes: const < String > ['CurvedAnimation' ]),
1105- (WidgetTester tester) async {
1080+ testWidgets ('Animated push/pop is not linear' , (WidgetTester tester) async {
11061081 await tester.pumpWidget (
11071082 const CupertinoApp (
11081083 home: Text ('1' ),
@@ -2620,10 +2595,7 @@ void main() {
26202595 });
26212596 });
26222597
2623- testWidgets (
2624- // TODO(polina-c): remove when fixed https://github.com/flutter/flutter/issues/145600 [leak-tracking-opt-in]
2625- experimentalLeakTesting: LeakTesting .settings.withTracked (classes: < String > ['CurvedAnimation' ]),
2626- 'Fullscreen route does not leak CurveAnimation' , (WidgetTester tester) async {
2598+ testWidgets ( 'Fullscreen route does not leak CurveAnimation' , (WidgetTester tester) async {
26272599 await tester.pumpWidget (
26282600 MaterialApp (
26292601 home: Builder (
@@ -2667,10 +2639,7 @@ void main() {
26672639 await tester.pump (const Duration (milliseconds: 400 ));
26682640 });
26692641
2670- testWidgets ('CupertinoModalPopupRoute does not leak CurveAnimation' ,
2671- // TODO(polina-c): remove when fixed https://github.com/flutter/flutter/issues/145600 [leak-tracking-opt-in]
2672- experimentalLeakTesting: LeakTesting .settings.withTracked (classes: < String > ['CurvedAnimation' ]),
2673- (WidgetTester tester) async {
2642+ testWidgets ('CupertinoModalPopupRoute does not leak CurveAnimation' , (WidgetTester tester) async {
26742643 await tester.pumpWidget (MaterialApp (
26752644 home: Navigator (
26762645 onGenerateRoute: (RouteSettings settings) {
@@ -2697,10 +2666,7 @@ void main() {
26972666 await tester.pumpAndSettle ();
26982667 });
26992668
2700- testWidgets ('CupertinoDialogRoute does not leak CurveAnimation' ,
2701- // TODO(polina-c): remove when fixed https://github.com/flutter/flutter/issues/145600 [leak-tracking-opt-in]
2702- experimentalLeakTesting: LeakTesting .settings.withTracked (classes: < String > ['CurvedAnimation' ]),
2703- (WidgetTester tester) async {
2669+ testWidgets ('CupertinoDialogRoute does not leak CurveAnimation' , (WidgetTester tester) async {
27042670 await tester.pumpWidget (MaterialApp (
27052671 home: Navigator (
27062672 onGenerateRoute: (RouteSettings settings) {
0 commit comments