Skip to content

Commit 3646c3b

Browse files
committed
FIX: 词典弹窗高度上限测试断言对齐实现(92%→95%)
1 parent 242e402 commit 3646c3b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/widgets/dictionary/word_dictionary_sheet_resize_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ void main() {
166166
});
167167
});
168168

169-
testWidgets('上拉不超过 92% 屏高上限', (tester) async {
169+
testWidgets('上拉不超过 95% 屏高上限', (tester) async {
170170
await withLinux(() async {
171171
await tester.pumpWidget(wrap());
172172
await tester.pumpAndSettle();
@@ -178,7 +178,7 @@ void main() {
178178
// 远超上限的拖拽量
179179
await tester.drag(handle, const Offset(0, -2000));
180180
await tester.pumpAndSettle();
181-
expect(tester.getSize(sizer).height, lessThanOrEqualTo(screenH * 0.92 + 1));
181+
expect(tester.getSize(sizer).height, lessThanOrEqualTo(screenH * 0.95 + 1));
182182
});
183183
});
184184

0 commit comments

Comments
 (0)