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:
Jason Simmons 2023-06-27 09:56:13 -07:00 committed by GitHub
parent 4b238d5458
commit 3e66c86ae4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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