Disable leak tracking for selection text area (#147273)

This commit is contained in:
Valentin Vignal
2024-04-25 00:06:17 +08:00
committed by GitHub
parent fa85f69e47
commit 2676c84a90

View File

@@ -9,7 +9,6 @@ import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:leak_tracker_flutter_testing/leak_tracker_flutter_testing.dart';
import '../widgets/process_text_utils.dart';
@@ -289,10 +288,7 @@ void main() {
expect(content!.plainText, 'How');
});
testWidgets('stopping drag of end handle will show the toolbar',
// TODO(polina-c): remove when fixed https://github.com/flutter/flutter/issues/145600 [leak-tracking-opt-in]
experimentalLeakTesting: LeakTesting.settings.withTracked(classes: const <String>['CurvedAnimation']),
(WidgetTester tester) async {
testWidgets('stopping drag of end handle will show the toolbar', (WidgetTester tester) async {
final FocusNode focusNode = FocusNode();
addTearDown(focusNode.dispose);