-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cover some test/widgets tests with leak tracking #133803
Conversation
@polina-c please review this PR when you have time. |
@@ -392,9 393,11 @@ void main() { | |||
await buildTest(true); | |||
expect(hovering, isFalse); | |||
expect(focusing, isFalse); | |||
|
|||
focusNode.dispose(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update disposals to be aligned with newly gained knowledge: dart-lang/leak_tracker#138
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@polina-c great rule, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small comment.
@polina-c Could you please take a look again? |
@polina-c could you please take a look again? |
…4870) Manual roll Flutter from 685ce14b2d0f to aea4552acdc7 (64 revisions) Manual roll requested by [email protected] flutter/flutter@685ce14...aea4552 2023-09-07 [email protected] add --exit flag to dev/devicelab/bin/test_runner.dart (flutter/flutter#134165) 2023-09-07 [email protected] fix `--exit` flag in dev/devicelab/bin/run.dart (flutter/flutter#134162) 2023-09-07 [email protected] Roll Packages from e7d812c to 22d4754 (9 revisions) (flutter/flutter#134232) 2023-09-07 [email protected] Roll Flutter Engine from 71bea01d3abe to f0b718e28779 (2 revisions) (flutter/flutter#134231) 2023-09-07 [email protected] DropdownRoutePage should dispose the created ScrollController. (flutter/flutter#133941) 2023-09-07 [email protected] Cover some test/widgets tests with leak tracking (flutter/flutter#133803) 2023-09-07 [email protected] SearchDelegate should dispose resources. (flutter/flutter#133948) 2023-09-07 [email protected] Fixed [NavigationRailDestination]'s label opacity while disabled not being coherent with the icon (flutter/flutter#132345) 2023-09-07 [email protected] Roll Flutter Engine from 558136a1ccbf to 71bea01d3abe (2 revisions) (flutter/flutter#134216) 2023-09-07 [email protected] Roll Flutter Engine from 5a45ecd24aa3 to 558136a1ccbf (1 revision) (flutter/flutter#134206) 2023-09-07 [email protected] Roll Flutter Engine from d864ae68db3c to 5a45ecd24aa3 (1 revision) (flutter/flutter#134201) 2023-09-07 [email protected] Fix `TabBar` doesn't use `labelStyle` & `unselectedLabelStyle` color (flutter/flutter#133989) 2023-09-07 [email protected] Fix `DataTable`'s `headingTextStyle` & `dataTextStyle` are not merged with default text style (flutter/flutter#134138) 2023-09-07 [email protected] Roll Flutter Engine from 187c5b3c5f71 to d864ae68db3c (2 revisions) (flutter/flutter#134199) 2023-09-07 [email protected] Reland "Fix `Chip.shape`'s side is not used when provided in Material 3" (flutter/flutter#133856) 2023-09-07 [email protected] Roll Flutter Engine from 75437a3bd002 to 187c5b3c5f71 (1 revision) (flutter/flutter#134193) 2023-09-07 [email protected] Manual roll Flutter Engine from 2c69d05dfafb to 75437a3bd002 (15 revisions) (flutter/flutter#134188) 2023-09-07 [email protected] Revert "Roll Flutter Engine from 2c69d05dfafb to fa14d337449b (6 revisions)" (flutter/flutter#134183) 2023-09-06 49699333 dependabot[bot]@users.noreply.github.com Bump actions/upload-artifact from 3.1.2 to 3.1.3 (flutter/flutter#134173) 2023-09-06 [email protected] Roll Flutter Engine from 2c69d05dfafb to fa14d337449b (6 revisions) (flutter/flutter#134169) 2023-09-06 [email protected] DraggableScrollableActuator should dispose notifier. (flutter/flutter#133917) 2023-09-06 [email protected] Roll Flutter Engine from b04c2a378302 to 2c69d05dfafb (3 revisions) (flutter/flutter#134164) 2023-09-06 [email protected] Clean the fixed TODOs. (flutter/flutter#133859) 2023-09-06 [email protected] Roll Flutter Engine from 839051596b1d to b04c2a378302 (7 revisions) (flutter/flutter#134158) 2023-09-06 737941 [email protected] [Windows Arm64] Also use Windows 11 for Devicelab tests (flutter/flutter#134082) 2023-09-06 70351342 [email protected] Fix `subtitleTextStyle.color` isn't applied to the `ListTile.subtitle` in Material 2 (flutter/flutter#133422) 2023-09-06 [email protected] Add `CheckedPopupMenuItem.onTap` callback (flutter/flutter#134000) 2023-09-06 [email protected] MinimumTextContrastGuideline should dispose image. (flutter/flutter#133861) 2023-09-06 [email protected] [flutter_tools] Fix "FormatException: Invalid date format" during version freshness check (flutter/flutter#134088) 2023-09-06 [email protected] Fix not disposed items in Cupertino app and route. (flutter/flutter#134085) 2023-09-06 [email protected] Roll Flutter Engine from a5e7fa6bf81a to 839051596b1d (2 revisions) (flutter/flutter#134140) 2023-09-06 [email protected] _DropdownMenuState should dispose TextEditingController. (flutter/flutter#133914) 2023-09-06 [email protected] Roll Flutter Engine from 5253a33096d1 to a5e7fa6bf81a (1 revision) (flutter/flutter#134137) 2023-09-06 [email protected] Roll Flutter Engine from c7fd088291e2 to 5253a33096d1 (1 revision) (flutter/flutter#134135) 2023-09-06 [email protected] Roll Flutter Engine from 3d9989f1e155 to c7fd088291e2 (1 revision) (flutter/flutter#134132) 2023-09-06 [email protected] Roll Flutter Engine from bace539bb654 to 3d9989f1e155 (3 revisions) (flutter/flutter#134128) 2023-09-06 [email protected] Roll Flutter Engine from 9344685efbc3 to bace539bb654 (1 revision) (flutter/flutter#134104) 2023-09-06 [email protected] Roll Flutter Engine from 0c8c1647dcd0 to 9344685efbc3 (1 revision) (flutter/flutter#134103) 2023-09-06 [email protected] Roll Flutter Engine from 0c663258fd09 to 0c8c1647dcd0 (1 revision) (flutter/flutter#134100) 2023-09-06 [email protected] Roll Flutter Engine from 8bacc3b38707 to 0c663258fd09 (3 revisions) (flutter/flutter#134096) 2023-09-06 [email protected] Roll Flutter Engine from 590349006d23 to 8bacc3b38707 (5 revisions) (flutter/flutter#134089) 2023-09-06 [email protected] Roll Flutter Engine from 5b2cc9d9b8fe to 590349006d23 (2 revisions) (flutter/flutter#134081) 2023-09-05 [email protected] Roll Flutter Engine from 98b036ae708e to 5b2cc9d9b8fe (2 revisions) (flutter/flutter#134080) 2023-09-05 [email protected] Roll Flutter Engine from f4975e04f35e to 98b036ae708e (3 revisions) (flutter/flutter#134077) ...
Description
This is the fixed copy of the #133767.
This PR changes
testWidgets
bytestWidgetsWithLeakTracking
in number offlutter/test/widgets
tests according to the dart-lang/leak_tracker#134.Marks leaks
Tests
absorb_pointer_test.dart
to usetestWidgetsWithLeakTracking
;actions_test.dart
to usetestWidgetsWithLeakTracking
;align_test.dart
to usetestWidgetsWithLeakTracking
;animated_align_test.dart
to usetestWidgetsWithLeakTracking
;animated_container_test.dart
to usetestWidgetsWithLeakTracking
;animated_cross_fade_test.dart
to usetestWidgetsWithLeakTracking
;animated_grid_test.dart
to usetestWidgetsWithLeakTracking
;animated_image_filtered_repaint_test.dart
to usetestWidgetsWithLeakTracking
;animated_list_test.dart
to usetestWidgetsWithLeakTracking
;animated_opacity_repaint_test.dart
to usetestWidgetsWithLeakTracking
;animated_padding_test.dart
to usetestWidgetsWithLeakTracking
;animated_positioned_test.dart
to usetestWidgetsWithLeakTracking
;animated_size_test.dart
to usetestWidgetsWithLeakTracking
;animated_switcher_test.dart
to usetestWidgetsWithLeakTracking
;annotated_region_test.dart
to usetestWidgetsWithLeakTracking
;app_lifecycle_listener_test.dart
to usetestWidgetsWithLeakTracking
;app_navigator_key_test.dart
to usetestWidgetsWithLeakTracking
;app_overrides_test.dart
to usetestWidgetsWithLeakTracking
;app_test.dart
to usetestWidgetsWithLeakTracking
;app_title_test.dart
to usetestWidgetsWithLeakTracking
;aspect_ratio_test.dart
to usetestWidgetsWithLeakTracking
;async_test.dart
to usetestWidgetsWithLeakTracking
;autocomplete_test.dart
to usetestWidgetsWithLeakTracking
;autofill_group_test.dart
to usetestWidgetsWithLeakTracking
;automatic_keep_alive_test.dart
to usetestWidgetsWithLeakTracking
;backdrop_filter_test.dart
to usetestWidgetsWithLeakTracking
;banner_test.dart
to usetestWidgetsWithLeakTracking
;baseline_test.dart
to usetestWidgetsWithLeakTracking
;basic_test.dart
to usetestWidgetsWithLeakTracking
;binding_deferred_first_frame_test.dart
to usetestWidgetsWithLeakTracking
;binding_test.dart
to usetestWidgetsWithLeakTracking
;box_decoration_test.dart
to usetestWidgetsWithLeakTracking
;build_context_test.dart
to usetestWidgetsWithLeakTracking
;build_scope_test.dart
to usetestWidgetsWithLeakTracking
;center_test.dart
to usetestWidgetsWithLeakTracking
;clamp_overscrolls_test.dart
to usetestWidgetsWithLeakTracking
;clip_test.dart
to usetestWidgetsWithLeakTracking
;color_filter_test.dart
to usetestWidgetsWithLeakTracking
;column_test.dart
to usetestWidgetsWithLeakTracking
;composited_transform_test.dart
to usetestWidgetsWithLeakTracking
;constrained_box_test.dart
to usetestWidgetsWithLeakTracking
;container_test.dart
to usetestWidgetsWithLeakTracking
;context_menu_controller_test.dart
to usetestWidgetsWithLeakTracking
;coordinates_test.dart
to usetestWidgetsWithLeakTracking
;custom_multi_child_layout_test.dart
to usetestWidgetsWithLeakTracking
;custom_paint_test.dart
to usetestWidgetsWithLeakTracking
;custom_painter_test.dart
to usetestWidgetsWithLeakTracking
;custom_scroll_view_test.dart
to usetestWidgetsWithLeakTracking
;custom_single_child_layout_test.dart
to usetestWidgetsWithLeakTracking
;debug_test.dart
to usetestWidgetsWithLeakTracking
;decorated_sliver_test.dart
to usetestWidgetsWithLeakTracking
;default_colors_test.dart
to usetestWidgetsWithLeakTracking
;default_text_editing_shortcuts_test.dart
to usetestWidgetsWithLeakTracking
;default_text_height_behavior_test.dart
to usetestWidgetsWithLeakTracking
;default_text_style_test.dart
to usetestWidgetsWithLeakTracking
;did_update_widget_test.dart
to usetestWidgetsWithLeakTracking
;directionality_test.dart
to usetestWidgetsWithLeakTracking
;dismissible_test.dart
to usetestWidgetsWithLeakTracking
;display_feature_sub_screen_test.dart
to usetestWidgetsWithLeakTracking
;disposable_build_context_test.dart
to usetestWidgetsWithLeakTracking
.Pre-launch Checklist
///
).