Unverified Commit 0844726a authored by Polina Cherkasova's avatar Polina Cherkasova Committed by GitHub

Mark leak: instances of OpacityLayer, created by _RenderChip, should be disposed. (#134395)

parent 219efce7
...@@ -217,7 +217,7 @@ Finder findTooltipContainer(String tooltipText) { ...@@ -217,7 +217,7 @@ Finder findTooltipContainer(String tooltipText) {
} }
void main() { void main() {
testWidgets('M2 Chip defaults', (WidgetTester tester) async { testWidgetsWithLeakTracking('M2 Chip defaults', (WidgetTester tester) async {
late TextTheme textTheme; late TextTheme textTheme;
Widget buildFrame(Brightness brightness) { Widget buildFrame(Brightness brightness) {
...@@ -292,7 +292,12 @@ void main() { ...@@ -292,7 +292,12 @@ void main() {
expect(labelStyle.overflow, textTheme.bodyLarge?.overflow); expect(labelStyle.overflow, textTheme.bodyLarge?.overflow);
expect(labelStyle.textBaseline, textTheme.bodyLarge?.textBaseline); expect(labelStyle.textBaseline, textTheme.bodyLarge?.textBaseline);
expect(labelStyle.wordSpacing, textTheme.bodyLarge?.wordSpacing); expect(labelStyle.wordSpacing, textTheme.bodyLarge?.wordSpacing);
}); },
// TODO(polina-c): remove after fixing
// https://github.com/flutter/flutter/issues/134394
leakTrackingTestConfig: const LeakTrackingTestConfig(
notDisposedAllowList: <String, int?>{'OpacityLayer': 2},
));
testWidgetsWithLeakTracking('M3 Chip defaults', (WidgetTester tester) async { testWidgetsWithLeakTracking('M3 Chip defaults', (WidgetTester tester) async {
late TextTheme textTheme; late TextTheme textTheme;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment