Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
209865ae
Unverified
Commit
209865ae
authored
May 02, 2023
by
Polina Cherkasova
Committed by
GitHub
May 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up in memory_allocations_test.dart. (#125777)
parent
12b3023e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
memory_allocations_test.dart
...ages/flutter/test/foundation/memory_allocations_test.dart
+2
-6
memory_allocations_test.dart
...tter/test_release/foundation/memory_allocations_test.dart
+2
-6
No files found.
packages/flutter/test/foundation/memory_allocations_test.dart
View file @
209865ae
...
...
@@ -210,12 +210,8 @@ Future<int> _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
;
}
...
...
packages/flutter/test_release/foundation/memory_allocations_test.dart
View file @
209865ae
...
...
@@ -57,12 +57,8 @@ Future<void> _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
<
Image
>
_createImage
()
async
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment