Skip to content

Commit

Permalink
Update BottomSheetTest (#134562)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannah-hyj authored Sep 13, 2023
1 parent 57d2bad commit 6c7ddb8
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/flutter/test/material/bottom_sheet_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1673,8 +1673,7 @@ void main() {
});

group('Modal BottomSheet avoids overlapping display features', () {
testWidgetsWithLeakTracking('positioning using anchorPoint',
(WidgetTester tester) async {
testWidgetsWithLeakTracking('positioning using anchorPoint', (WidgetTester tester) async {
await tester.pumpWidget(
MaterialApp(
builder: (BuildContext context, Widget? child) {
Expand Down Expand Up @@ -1710,12 +1709,7 @@ void main() {
// Should take the right side of the screen
expect(tester.getTopLeft(find.byType(Placeholder)).dx, 410);
expect(tester.getBottomRight(find.byType(Placeholder)).dx, 800);
},
leakTrackingTestConfig: const LeakTrackingTestConfig(
// TODO(polina-c): remove after fix
// https://github.com/flutter/flutter/issues/133594
notDisposedAllowList: <String, int?> {'ValueNotifier<EdgeInsets>': 1}
));
});

testWidgetsWithLeakTracking('positioning using Directionality', (WidgetTester tester) async {
await tester.pumpWidget(
Expand Down

0 comments on commit 6c7ddb8

Please sign in to comment.