Unverified Commit 14faa8d9 authored by Justin McCandless's avatar Justin McCandless Committed by GitHub

Fix rounding error in build tests (#26652)

parent b4e9d0a4
...@@ -1757,7 +1757,7 @@ void main() { ...@@ -1757,7 +1757,7 @@ void main() {
// line text field). // line text field).
final double lineHeight = findRenderEditable(tester).preferredLineHeight; final double lineHeight = findRenderEditable(tester).preferredLineHeight;
scrollableState = tester.firstState(find.byType(Scrollable)); 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 { testWidgets('haptic feedback', (WidgetTester tester) async {
......
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