Skip to content

Commit

Permalink
[Impeller] Fixed TypographerTest.MaybeHasOverlapping (flutter#42429)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaaclarke authored May 30, 2023
1 parent 1ba8091 commit dff1847
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 6 additions & 1 deletion impeller/typographer/typographer_unittests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "impeller/typographer/lazy_glyph_atlas.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkData.h"
#include "third_party/skia/include/core/SkFontMgr.h"
#include "third_party/skia/include/core/SkTextBlob.h"

// TODO(zanderso): https://github.com/flutter/flutter/issues/127701
Expand Down Expand Up @@ -292,7 +293,11 @@ TEST_P(TypographerTest, FontGlyphPairTypeChangesHashAndEquals) {
}

TEST_P(TypographerTest, MaybeHasOverlapping) {
SkFont sk_font;
sk_sp<SkFontMgr> font_mgr = SkFontMgr::RefDefault();
sk_sp<SkTypeface> typeface =
font_mgr->matchFamilyStyle("Arial", SkFontStyle::Normal());
SkFont sk_font(typeface, 0.5f);

auto frame = TextFrameFromTextBlob(SkTextBlob::MakeFromString("1", sk_font));
// Single character has no overlapping
ASSERT_FALSE(frame.MaybeHasOverlapping());
Expand Down
8 changes: 2 additions & 6 deletions testing/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1200,12 +1200,8 @@ def main():
build_dir,
'impeller_unittests',
engine_filter,
# TODO(https://github.com/flutter/flutter/issues/127714): Remove test exemption.
shuffle_flags + [
'--gtest_filter=-'
'*/OpenGLES:'
'Play/TypographerTest.MaybeHasOverlapping/Vulkan:'
],
shuffle_flags + ['--gtest_filter=-'
'*/OpenGLES:'],
coverage=args.coverage
)
finally:
Expand Down

0 comments on commit dff1847

Please sign in to comment.