Mark test that leaks image. (#142539)

This commit is contained in:
Polina Cherkasova 2024-01-31 09:58:00 -08:00 committed by GitHub
parent 50dbcc48d4
commit 6d8aa4afaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 8 additions and 1 deletions

View file

@ -626,6 +626,7 @@ void main() {
const Color expectedSelectionHandleColor = Color.fromARGB(255, 10, 200, 255);
final TextEditingController controller = TextEditingController(text: 'Some text.');
addTearDown(controller.dispose);
await tester.pumpWidget(
CupertinoApp(

View file

@ -1935,6 +1935,7 @@ void main() {
testWidgets('DropdownMenu.focusNode can focus text input field', (WidgetTester tester) async {
final FocusNode focusNode = FocusNode();
addTearDown(focusNode.dispose);
final ThemeData theme = ThemeData();
await tester.pumpWidget(MaterialApp(

View file

@ -2616,6 +2616,7 @@ void main() {
child: const Text('Set focus to null'),
onPressed: () {
setState((){
buttonFocusNode?.dispose();
buttonFocusNode = null;
});
},

View file

@ -9297,6 +9297,7 @@ void main() {
const Color expectedSelectionHandleColor = Color.fromARGB(255, 10, 200, 255);
final TextEditingController controller = TextEditingController(text: 'Some text.');
addTearDown(controller.dispose);
await tester.pumpWidget(
MaterialApp(

View file

@ -167,7 +167,10 @@ void main() {
expect(imageCache.currentSize, 1);
});
testWidgets('ScrollAwareImageProvider delays if in scrollable that is scrolling fast', (WidgetTester tester) async {
testWidgets('ScrollAwareImageProvider delays if in scrollable that is scrolling fast',
// TODO(polina-c): make sure images are disposed, https://github.com/flutter/flutter/issues/141388 [leaks-to-clean]
experimentalLeakTesting: LeakTesting.settings.withIgnoredAll(),
(WidgetTester tester) async {
final List<GlobalKey<TestWidgetState>> keys = <GlobalKey<TestWidgetState>>[];
final ScrollController scrollController = ScrollController();
addTearDown(scrollController.dispose);