Alex Henrie : gdi32/tests: Add MS Shell Dlg tests.
Alexandre Julliard
julliard at winehq.org
Tue May 13 14:23:46 CDT 2014
Module: wine
Branch: master
Commit: 0fb88f8d01fd69e3d026fba069a66aa05413d48a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0fb88f8d01fd69e3d026fba069a66aa05413d48a
Author: Alex Henrie <alexhenrie24 at gmail.com>
Date: Sun May 11 22:05:12 2014 -0600
gdi32/tests: Add MS Shell Dlg tests.
---
dlls/gdi32/tests/font.c | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c
index 255771a..0e75088 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -4681,6 +4681,7 @@ static void test_EnumFonts(void)
int ret;
LOGFONTA lf;
HDC hdc;
+ struct enum_fullname_data efnd;
if (!is_truetype_font_installed("Arial"))
{
@@ -4741,6 +4742,28 @@ static void test_EnumFonts(void)
ret = EnumFontFamiliesA(hdc, NULL, enum_all_fonts_proc, (LPARAM)&lf);
ok(ret, "font Arial Italic Bold should not be enumerated\n");
+ /* MS Shell Dlg and MS Shell Dlg 2 must exist */
+ memset(&lf, 0, sizeof(lf));
+ lf.lfCharSet = DEFAULT_CHARSET;
+
+ memset(&efnd, 0, sizeof(efnd));
+ strcpy(lf.lfFaceName, "MS Shell Dlg");
+ ret = EnumFontFamiliesExA(hdc, &lf, enum_fullname_data_proc, (LPARAM)&efnd, 0);
+ ok(ret, "font MS Shell Dlg is not enumerated\n");
+ ret = strcmp((char*)efnd.elf[0].elfLogFont.lfFaceName, "MS Shell Dlg");
+ todo_wine ok(!ret, "expected MS Shell Dlg got %s\n", efnd.elf[0].elfLogFont.lfFaceName);
+ ret = strcmp((char*)efnd.elf[0].elfFullName, "MS Shell Dlg");
+ ok(ret, "did not expect MS Shell Dlg\n");
+
+ memset(&efnd, 0, sizeof(efnd));
+ strcpy(lf.lfFaceName, "MS Shell Dlg 2");
+ ret = EnumFontFamiliesExA(hdc, &lf, enum_fullname_data_proc, (LPARAM)&efnd, 0);
+ ok(ret, "font MS Shell Dlg 2 is not enumerated\n");
+ ret = strcmp((char*)efnd.elf[0].elfLogFont.lfFaceName, "MS Shell Dlg 2");
+ todo_wine ok(!ret, "expected MS Shell Dlg 2 got %s\n", efnd.elf[0].elfLogFont.lfFaceName);
+ ret = strcmp((char*)efnd.elf[0].elfFullName, "MS Shell Dlg 2");
+ ok(ret, "did not expect MS Shell Dlg 2\n");
+
DeleteDC(hdc);
}
More information about the wine-cvs
mailing list