[Gdiplus try2 04/10] Test for GdipGetFontStyle

Adam Petaccia adam at tpetaccia.com
Wed Aug 27 16:21:49 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 3a009f4..a6431bb 100644
--- a/dlls/gdiplus/tests/font.c
+++ b/dlls/gdiplus/tests/font.c
@@ -104,6 +104,7 @@ static void test_logfont(void)
     GpStatus stat;
     GpGraphics *graphics;
     HDC hdc = GetDC(0);
+    INT style;
 
     GdipCreateFromHDC(hdc, &graphics);
     memset(&lfw, 0, sizeof(LOGFONTW));
@@ -173,6 +174,14 @@ todo_wine {
     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