mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Fix rounding error in build tests (#26652)
This commit is contained in:
parent
b4e9d0a440
commit
14faa8d935
@ -1757,7 +1757,7 @@ void main() {
|
||||
// line text field).
|
||||
final double lineHeight = findRenderEditable(tester).preferredLineHeight;
|
||||
scrollableState = tester.firstState(find.byType(Scrollable));
|
||||
expect(scrollableState.position.pixels, equals(lineHeight));
|
||||
expect(scrollableState.position.pixels, closeTo(lineHeight, 0.1));
|
||||
});
|
||||
|
||||
testWidgets('haptic feedback', (WidgetTester tester) async {
|
||||
|
Loading…
Reference in New Issue
Block a user