Remove Mac workaround from wxFont unit test not needed any more

After #23144 was fixed, calling DumpFont() doesn't modify the font under
Mac any longer, so we don't need to avoid calling it there.
This commit is contained in:
Vadim Zeitlin 2023-02-07 10:59:54 +01:00
parent f1b38c2500
commit b6a42b4ef4

View file

@ -489,12 +489,7 @@ TEST_CASE("wxFontList::FindOrCreate", "[font][fontinfo][fontlist]")
REQUIRE(font1); REQUIRE(font1);
REQUIRE(font1->IsOk()); REQUIRE(font1->IsOk());
// There is a bug in wxOSX which results in the font size in points being
// changed (rounded) by the call to GetPixelSize() inside DumpFont(), so we
// can't use it there until #23144 is fixed.
#ifndef __WXMAC__
INFO("Font from font list:" << DumpFont(font1)); INFO("Font from font list:" << DumpFont(font1));
#endif
if ( info.IsUsingSizeInPixels() ) if ( info.IsUsingSizeInPixels() )
CHECK(font1->GetPixelSize().y == pixelSize.y); CHECK(font1->GetPixelSize().y == pixelSize.y);