Unverified Commit 6c7ddb85 authored by hangyu's avatar hangyu Committed by GitHub

Update BottomSheetTest (#134562)

parent 57d2bad7
...@@ -1673,8 +1673,7 @@ void main() { ...@@ -1673,8 +1673,7 @@ void main() {
}); });
group('Modal BottomSheet avoids overlapping display features', () { group('Modal BottomSheet avoids overlapping display features', () {
testWidgetsWithLeakTracking('positioning using anchorPoint', testWidgetsWithLeakTracking('positioning using anchorPoint', (WidgetTester tester) async {
(WidgetTester tester) async {
await tester.pumpWidget( await tester.pumpWidget(
MaterialApp( MaterialApp(
builder: (BuildContext context, Widget? child) { builder: (BuildContext context, Widget? child) {
...@@ -1710,12 +1709,7 @@ void main() { ...@@ -1710,12 +1709,7 @@ void main() {
// Should take the right side of the screen // Should take the right side of the screen
expect(tester.getTopLeft(find.byType(Placeholder)).dx, 410); expect(tester.getTopLeft(find.byType(Placeholder)).dx, 410);
expect(tester.getBottomRight(find.byType(Placeholder)).dx, 800); 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 { testWidgetsWithLeakTracking('positioning using Directionality', (WidgetTester tester) async {
await tester.pumpWidget( await tester.pumpWidget(
......
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