mirror of
https://github.com/flutter/flutter
synced 2024-08-27 12:00:58 +00:00
Make a paragraph test involving Chinese characters work with inconsistent 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.
This commit is contained in:
parent
4b238d5458
commit
3e66c86ae4
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue