From 224099872edbb1908466ee4de47c3aa56a58258e Mon Sep 17 00:00:00 2001 From: Dimil Kalathiya <102401667+Dimilkalathiya@users.noreply.github.com> Date: Wed, 17 Apr 2024 03:50:10 +0530 Subject: [PATCH] fix test-case for RenderView (#146825) --- packages/flutter/test/animation/live_binding_test.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/flutter/test/animation/live_binding_test.dart b/packages/flutter/test/animation/live_binding_test.dart index 8a7e2f1a30b9..3d155a4cad96 100644 --- a/packages/flutter/test/animation/live_binding_test.dart +++ b/packages/flutter/test/animation/live_binding_test.dart @@ -9,7 +9,6 @@ library; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; -import 'package:leak_tracker_flutter_testing/leak_tracker_flutter_testing.dart'; void main() { /* @@ -79,8 +78,6 @@ void main() { }, skip: true); // Typically skip: isBrowser https://github.com/flutter/flutter/issues/42767 testWidgets('Should show event indicator for pointer events with setSurfaceSize', - // TODO(polina-c): root layer is leaking, https://github.com/flutter/flutter/issues/146742 [leaks-to-clean] - experimentalLeakTesting: LeakTesting.settings.withIgnoredAll(), (WidgetTester tester) async { final AnimationSheetBuilder animationSheet = AnimationSheetBuilder(frameSize: const Size(200, 200), allLayers: true); addTearDown(animationSheet.dispose); @@ -113,6 +110,7 @@ void main() { ); await tester.binding.setSurfaceSize(const Size(300, 300)); + addTearDown(() => tester.binding.setSurfaceSize(null)); await tester.pumpWidget(target(recording: false)); await tester.pumpFrames(target(), const Duration(milliseconds: 50));