[Gdiplus 6/9] Test for GdipGetFontStyle
Adam Petaccia
adam at tpetaccia.com
Sat Aug 16 22:29:00 CDT 2008
---
dlls/gdiplus/tests/font.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c
index b1a4a78..7c90b8e 100644
--- a/dlls/gdiplus/tests/font.c
+++ b/dlls/gdiplus/tests/font.c
@@ -102,6 +102,7 @@ static void test_logfont(void)
GpStatus stat;
GpGraphics *graphics;
HDC hdc = GetDC(0);
+ INT style;
GdipCreateFromHDC(hdc, &graphics);
memset(&lfw, 0, sizeof(LOGFONTW));
@@ -169,6 +170,14 @@ static void test_logfont(void)
expect(0, lfw2.lfQuality);
expect(0, lfw2.lfPitchAndFamily);
+todo_wine
+{
+ stat = GdipGetFontStyle(font, &style);
+ expect(Ok, stat);
+ ok (style == (FontStyleItalic | FontStyleUnderline | FontStyleStrikeout),
+ "Expected , got %d\n", style);
+}
+
GdipDeleteFont(font);
GdipDeleteGraphics(graphics);
--
1.5.4.3
More information about the wine-patches
mailing list