Fix rounding error in build tests (#26652)

This commit is contained in:
Justin McCandless
2019-01-16 09:48:04 -08:00
committed by GitHub
parent b4e9d0a440
commit 14faa8d935

View File

@@ -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 {