Making TextPainter rounding hack disabled by default (#132094)

Migrate tests in flutter/flutter. Once the tests here and in `*_customer_testing` are migrated, the default value of the migration flag will be changed from false to true, making the rounding hack disabled by default.
This commit is contained in:
LongCatIsLooong
2023-08-09 17:30:52 -07:00
committed by GitHub
parent 118c2df776
commit 3f831b694f
34 changed files with 486 additions and 471 deletions

View File

@@ -105,7 +105,7 @@ void main() {
await tester.tap(find.text('Small'));
await tester.pumpAndSettle();
Size textSize = tester.getSize(find.text('Text size'));
expect(textSize, equals(const Size(116.0, 13.0)));
expect(textSize, equals(within(distance: 0.05, from: const Size(115.2, 13.0))));
// Set font scale back to the default.
await tester.tap(find.byIcon(Icons.arrow_drop_down).at(1));