Commit 36b093d6 authored by Ian Hickson's avatar Ian Hickson Committed by GitHub

This doesn't need a hack. (#5855)

parent 1c81699d
......@@ -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 {
......
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