[Gdiplus 05/16] Test for GdipCloneFontFamily
Adam Petaccia
adam at tpetaccia.com
Wed Jul 2 12:24:56 CDT 2008
---
dlls/gdiplus/tests/font.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c
index e710c30..d3c65cc 100644
--- a/dlls/gdiplus/tests/font.c
+++ b/dlls/gdiplus/tests/font.c
@@ -150,7 +150,7 @@ static void test_logfont(void)
static void test_fontfamily (void)
{
- GpFontFamily* FontFamily;
+ GpFontFamily *FontFamily, *ClonedFontFamily;
WCHAR FamilyName[LF_FACESIZE];
GpStatus stat;
@@ -182,7 +182,18 @@ static void test_fontfamily (void)
expect (Ok, stat);
}
+ ZeroMemory (FamilyName, sizeof(FamilyName));
+todo_wine
+{
+ stat = GdipCloneFontFamily(FontFamily, &ClonedFontFamily);
+ expect (Ok, stat);
GdipDeleteFontFamily(FontFamily);
+ stat = GdipGetFamilyName(ClonedFontFamily, FamilyName, LANG_NEUTRAL);
+ expect(Ok, stat);
+ expect(0, lstrcmpiW(FamilyName, arial));
+}
+
+ GdipDeleteFontFamily(ClonedFontFamily);
}
--
1.5.4.3
More information about the wine-patches
mailing list