Module: wine Branch: master Commit: eeb52474c1a04a9f8f75ab7602d4113bae6d0fe3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=eeb52474c1a04a9f8f75ab7602...
Author: Dmitry Timoshkov dmitry@baikal.ru Date: Tue Jun 19 12:05:17 2012 +0900
gdiplus: Add a test for creating a nonexistent font with GdipCreateFontFromLogfont.
---
dlls/gdiplus/tests/font.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c index 982db39..03f5769 100644 --- a/dlls/gdiplus/tests/font.c +++ b/dlls/gdiplus/tests/font.c @@ -105,6 +105,11 @@ static void test_logfont(void) memset(&lfa, 0, sizeof(LOGFONTA)); memset(&lfa2, 0xff, sizeof(LOGFONTA));
+ lstrcpyA(lfa.lfFaceName, "Nonexistent font"); + stat = GdipCreateFontFromLogfontA(hdc, &lfa, &font); + ok(stat == NotTrueTypeFont || broken(stat == FileNotFound), /* before XP */ + "expected NotTrueTypeFont, got %d\n", stat); + /* empty FaceName */ lfa.lfFaceName[0] = 0; stat = GdipCreateFontFromLogfontA(hdc, &lfa, &font);