Skip to content

Commit

Permalink
Make a paragraph test involving Chinese characters work with inconsis…
Browse files Browse the repository at this point in the history
…tent host system fonts (#129628)

Text tests are run using the Ahem font, and test host environments such
as LUCI may not provide a fallback font for Chinese glyphs.
  • Loading branch information
jason-simmons committed Jun 27, 2023
1 parent 4b238d5 commit 3e66c86
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/flutter/test/rendering/paragraph_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -843,8 +843,7 @@ void main() {

paintingContext.canvas.clear();
paragraph.paint(paintingContext, Offset.zero);
expect(paintingContext.canvas.drawnRect,
const Rect.fromLTWH(0.0, 0.0, 14.0, 14.0));
expect(paintingContext.canvas.drawnRect!.isEmpty, false);
expect(paintingContext.canvas.drawnRectPaint!.style, PaintingStyle.fill);
expect(paintingContext.canvas.drawnRectPaint!.color, selectionColor);
}, skip: isBrowser); // https://github.com/flutter/flutter/issues/61016
Expand Down

0 comments on commit 3e66c86

Please sign in to comment.