mirror of
https://github.com/flutter/flutter
synced 2024-08-25 02:46:31 +00:00
Mark test that leaks image. (#142539)
This commit is contained in:
parent
50dbcc48d4
commit
6d8aa4afaa
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -2616,6 +2616,7 @@ void main() {
|
|||
child: const Text('Set focus to null'),
|
||||
onPressed: () {
|
||||
setState((){
|
||||
buttonFocusNode?.dispose();
|
||||
buttonFocusNode = null;
|
||||
});
|
||||
},
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue