Skip SimpleRasterizerStatistics test on Fuchsia (flutter/engine#26053)
* Skip SimpleRasterizerStatistics test on Fuchsia This test depends on a valid default SkFontMgr to be installed. Otherwise, it uses an empty typeface, which leads to an SkTextBlob with empty bounds and unexpected test failures when Skia updates its quickReject() behavior. Fuchsia is the only platform that does not install an SkFontMgr. * Fix code style and line length
This commit is contained in:
@@ -170,6 +170,13 @@ TEST_F(PerformanceOverlayLayerTest, SimpleRasterizerStatistics) {
|
||||
SkPaint text_paint;
|
||||
text_paint.setColor(SK_ColorGRAY);
|
||||
SkPoint text_position = SkPoint::Make(16.0f, 22.0f);
|
||||
|
||||
// TODO(https://github.com/flutter/flutter/issues/82202): Remove once the
|
||||
// performance overlay can use Fuchsia's font manager instead of the empty
|
||||
// default.
|
||||
#if defined(OS_FUCHSIA)
|
||||
GTEST_SKIP() << "Expectation requires a valid default font manager";
|
||||
#endif // OS_FUCHSIA
|
||||
EXPECT_EQ(mock_canvas().draw_calls(),
|
||||
std::vector({MockCanvas::DrawCall{
|
||||
0, MockCanvas::DrawTextData{overlay_text_data, text_paint,
|
||||
|
||||
Reference in New Issue
Block a user