From 209865ae196cee29d8e949f6dc06571c5aad6117 Mon Sep 17 00:00:00 2001 From: Polina Cherkasova Date: Tue, 2 May 2023 09:13:36 -0700 Subject: [PATCH] Clean up in memory_allocations_test.dart. (#125777) --- .../flutter/test/foundation/memory_allocations_test.dart | 8 ++------ .../test_release/foundation/memory_allocations_test.dart | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/packages/flutter/test/foundation/memory_allocations_test.dart b/packages/flutter/test/foundation/memory_allocations_test.dart index e802531305..537061ad72 100644 --- a/packages/flutter/test/foundation/memory_allocations_test.dart +++ b/packages/flutter/test/foundation/memory_allocations_test.dart @@ -210,12 +210,8 @@ Future _activateFlutterObjectsAndReturnCountOfEvents() async { changeNotifier.dispose(); count++; picture.dispose(); count++; - // TODO(polina-c): Remove the condition after - // https://github.com/flutter/flutter/issues/110599 is fixed. - if (!kIsWeb) { - final Image image = await _createImage(); count++; count++; count++; - image.dispose(); count++; - } + final Image image = await _createImage(); count++; count++; count++; + image.dispose(); count++; return count; } diff --git a/packages/flutter/test_release/foundation/memory_allocations_test.dart b/packages/flutter/test_release/foundation/memory_allocations_test.dart index cac6c140bc..21886e3881 100644 --- a/packages/flutter/test_release/foundation/memory_allocations_test.dart +++ b/packages/flutter/test_release/foundation/memory_allocations_test.dart @@ -57,12 +57,8 @@ Future _activateFlutterObjects(WidgetTester tester) async { changeNotifier.dispose(); picture.dispose(); - // TODO(polina-c): Remove the condition after - // https://github.com/flutter/flutter/issues/110599 is fixed. - if (!kIsWeb) { - final Image image = await _createImage(); - image.dispose(); - } + final Image image = await _createImage(); + image.dispose(); } Future _createImage() async {