gdiplus/tests: Don't test the exact substitution of MS Shell Dlg.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47872 Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
861811254f
commit
689e94c597
|
@ -828,8 +828,7 @@ static void test_font_substitution(void)
|
||||||
memset(&lf, 0xfe, sizeof(lf));
|
memset(&lf, 0xfe, sizeof(lf));
|
||||||
status = GdipGetLogFontA(font, graphics, &lf);
|
status = GdipGetLogFontA(font, graphics, &lf);
|
||||||
expect(Ok, status);
|
expect(Ok, status);
|
||||||
ok(!lstrcmpA(lf.lfFaceName, "Microsoft Sans Serif") ||
|
ok(lstrcmpA(lf.lfFaceName, "MS Shell Dlg") != 0, "expected substitution of MS Shell Dlg\n");
|
||||||
!lstrcmpA(lf.lfFaceName, "Tahoma"), "wrong face name %s\n", lf.lfFaceName);
|
|
||||||
GdipDeleteFont(font);
|
GdipDeleteFont(font);
|
||||||
|
|
||||||
status = GdipCreateFontFamilyFromName(L"MS Shell Dlg", NULL, &family);
|
status = GdipCreateFontFamilyFromName(L"MS Shell Dlg", NULL, &family);
|
||||||
|
@ -839,8 +838,7 @@ static void test_font_substitution(void)
|
||||||
memset(&lf, 0xfe, sizeof(lf));
|
memset(&lf, 0xfe, sizeof(lf));
|
||||||
status = GdipGetLogFontA(font, graphics, &lf);
|
status = GdipGetLogFontA(font, graphics, &lf);
|
||||||
expect(Ok, status);
|
expect(Ok, status);
|
||||||
ok(!lstrcmpA(lf.lfFaceName, "Microsoft Sans Serif") ||
|
ok(lstrcmpA(lf.lfFaceName, "MS Shell Dlg") != 0, "expected substitution of MS Shell Dlg\n");
|
||||||
!lstrcmpA(lf.lfFaceName, "Tahoma"), "wrong face name %s\n", lf.lfFaceName);
|
|
||||||
GdipDeleteFont(font);
|
GdipDeleteFont(font);
|
||||||
GdipDeleteFontFamily(family);
|
GdipDeleteFontFamily(family);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue