Skip to content

Commit 209865a

Browse files
authored
Clean up in memory_allocations_test.dart. (#125777)
1 parent 12b3023 commit 209865a

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

packages/flutter/test/foundation/memory_allocations_test.dart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,8 @@ Future<int> _activateFlutterObjectsAndReturnCountOfEvents() async {
210210
changeNotifier.dispose(); count++;
211211
picture.dispose(); count++;
212212

213-
// TODO(polina-c): Remove the condition after
214-
// https://github.com/flutter/flutter/issues/110599 is fixed.
215-
if (!kIsWeb) {
216-
final Image image = await _createImage(); count++; count++; count++;
217-
image.dispose(); count++;
218-
}
213+
final Image image = await _createImage(); count++; count++; count++;
214+
image.dispose(); count++;
219215

220216
return count;
221217
}

packages/flutter/test_release/foundation/memory_allocations_test.dart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,8 @@ Future<void> _activateFlutterObjects(WidgetTester tester) async {
5757
changeNotifier.dispose();
5858
picture.dispose();
5959

60-
// TODO(polina-c): Remove the condition after
61-
// https://github.com/flutter/flutter/issues/110599 is fixed.
62-
if (!kIsWeb) {
63-
final Image image = await _createImage();
64-
image.dispose();
65-
}
60+
final Image image = await _createImage();
61+
image.dispose();
6662
}
6763

6864
Future<Image> _createImage() async {

0 commit comments

Comments
 (0)