@@ -664,16 +664,8 @@ void main() {
664664 final TestClipPaintingContext context = TestClipPaintingContext ();
665665 renderObject.paint (context, Offset .zero);
666666 expect (context.clipBehavior, equals (Clip .none));
667- },
668- leakTrackingTestConfig: const LeakTrackingTestConfig (
669- // TODO(ksokolovskyi): remove after fixing
670- notDisposedAllowList: < String , int ? > {
671- // https://github.com/flutter/flutter/issues/134575
672- 'OffsetLayer' : 1 ,
673- // https://github.com/flutter/flutter/issues/134572
674- 'ContainerLayer' : 1 ,
675- },
676- ));
667+ context.dispose ();
668+ });
677669
678670 testWidgetsWithLeakTracking ('GridView respects clipBehavior' , (WidgetTester tester) async {
679671 await tester.pumpWidget (
@@ -739,12 +731,8 @@ void main() {
739731 // 4th, check that a non-default clip behavior can be sent to the painting context.
740732 renderObject.paint (context, Offset .zero);
741733 expect (context.clipBehavior, equals (Clip .antiAlias));
742- },
743- leakTrackingTestConfig: const LeakTrackingTestConfig (
744- // TODO(ksokolovskyi): remove after fixing
745- // https://github.com/flutter/flutter/issues/134572
746- notDisposedAllowList: < String , int ? > {'ContainerLayer' : 1 },
747- ));
734+ context.dispose ();
735+ });
748736
749737 testWidgetsWithLeakTracking ('GridView.builder respects clipBehavior' , (WidgetTester tester) async {
750738 await tester.pumpWidget (
0 commit comments