Unverified Commit 6d8aa4af authored by Polina Cherkasova's avatar Polina Cherkasova Committed by GitHub

Mark test that leaks image. (#142539)

parent 50dbcc48
...@@ -626,6 +626,7 @@ void main() { ...@@ -626,6 +626,7 @@ void main() {
const Color expectedSelectionHandleColor = Color.fromARGB(255, 10, 200, 255); const Color expectedSelectionHandleColor = Color.fromARGB(255, 10, 200, 255);
final TextEditingController controller = TextEditingController(text: 'Some text.'); final TextEditingController controller = TextEditingController(text: 'Some text.');
addTearDown(controller.dispose);
await tester.pumpWidget( await tester.pumpWidget(
CupertinoApp( CupertinoApp(
......
...@@ -1935,6 +1935,7 @@ void main() { ...@@ -1935,6 +1935,7 @@ void main() {
testWidgets('DropdownMenu.focusNode can focus text input field', (WidgetTester tester) async { testWidgets('DropdownMenu.focusNode can focus text input field', (WidgetTester tester) async {
final FocusNode focusNode = FocusNode(); final FocusNode focusNode = FocusNode();
addTearDown(focusNode.dispose);
final ThemeData theme = ThemeData(); final ThemeData theme = ThemeData();
await tester.pumpWidget(MaterialApp( await tester.pumpWidget(MaterialApp(
......
...@@ -2616,6 +2616,7 @@ void main() { ...@@ -2616,6 +2616,7 @@ void main() {
child: const Text('Set focus to null'), child: const Text('Set focus to null'),
onPressed: () { onPressed: () {
setState((){ setState((){
buttonFocusNode?.dispose();
buttonFocusNode = null; buttonFocusNode = null;
}); });
}, },
......
...@@ -9297,6 +9297,7 @@ void main() { ...@@ -9297,6 +9297,7 @@ void main() {
const Color expectedSelectionHandleColor = Color.fromARGB(255, 10, 200, 255); const Color expectedSelectionHandleColor = Color.fromARGB(255, 10, 200, 255);
final TextEditingController controller = TextEditingController(text: 'Some text.'); final TextEditingController controller = TextEditingController(text: 'Some text.');
addTearDown(controller.dispose);
await tester.pumpWidget( await tester.pumpWidget(
MaterialApp( MaterialApp(
......
...@@ -167,7 +167,10 @@ void main() { ...@@ -167,7 +167,10 @@ void main() {
expect(imageCache.currentSize, 1); 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 List<GlobalKey<TestWidgetState>> keys = <GlobalKey<TestWidgetState>>[];
final ScrollController scrollController = ScrollController(); final ScrollController scrollController = ScrollController();
addTearDown(scrollController.dispose); addTearDown(scrollController.dispose);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment