mirror of
https://github.com/flutter/flutter
synced 2024-10-14 04:02:56 +00:00
This doesn't need a hack. (#5855)
This commit is contained in:
parent
1c81699d9f
commit
36b093d628
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue