From 36b093d6283eb570b3e7f53989f5f4bf6e48ad07 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Wed, 14 Sep 2016 10:26:47 -0700 Subject: [PATCH] This doesn't need a hack. (#5855) --- packages/flutter/test/material/tooltip_test.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/flutter/test/material/tooltip_test.dart b/packages/flutter/test/material/tooltip_test.dart index dcdd62ca0b..1d00df724a 100644 --- a/packages/flutter/test/material/tooltip_test.dart +++ b/packages/flutter/test/material/tooltip_test.dart @@ -72,10 +72,9 @@ void main() { RenderBox tip = tester.renderObject(find.text('TIP')).parent.parent.parent.parent.parent; - // See "_applyFloatingPointHack" Point tipInGlobal = tip.localToGlobal(tip.size.topLeft(Point.origin)); - expect(tipInGlobal.x.floor(), 284); - expect(tipInGlobal.y.floor(), 20); + expect(tipInGlobal.x, 284.5); + expect(tipInGlobal.y, 20.0); }); testWidgets('Does tooltip end up in the right place - top left', (WidgetTester tester) async {