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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user