Adam Petaccia : gdiplus: Test for GdipGetFontStyle.
Alexandre Julliard
julliard at winehq.org
Thu Aug 28 07:00:46 CDT 2008
Module: wine
Branch: master
Commit: 837dae3f730b970119e1114098ebe6f0f138dd3f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=837dae3f730b970119e1114098ebe6f0f138dd3f
Author: Adam Petaccia <adam at tpetaccia.com>
Date: Wed Aug 27 17:21:49 2008 -0400
gdiplus: Test for GdipGetFontStyle.
---
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);
More information about the wine-cvs
mailing list