Module: wine Branch: master Commit: ee3a315385bf7c38d77a2f48d3fc72d0d1f0a992 URL: https://source.winehq.org/git/wine.git/?a=commit;h=ee3a315385bf7c38d77a2f48d...
Author: Akihiro Sagawa sagawa.aki@gmail.com Date: Sat Jan 23 00:28:11 2021 +0900
comdlg32/tests: Add a test for CF_NOSCRIPTSEL.
Signed-off-by: Akihiro Sagawa sagawa.aki@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/comdlg32/tests/fontdlg.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dlls/comdlg32/tests/fontdlg.c b/dlls/comdlg32/tests/fontdlg.c index 090053522dd..e8f184c4ed8 100644 --- a/dlls/comdlg32/tests/fontdlg.c +++ b/dlls/comdlg32/tests/fontdlg.c @@ -110,8 +110,14 @@ static void test_ChooseFontA(void) ok(cfa.iPointSize == expected_pointsize, "Expected %i, got %i\n", expected_pointsize, cfa.iPointSize); ok(lfa.lfHeight == expected_lfheight, "Expected %i, got %i\n", expected_lfheight, lfa.lfHeight); ok(lfa.lfWeight == FW_NORMAL, "Expected FW_NORMAL, got %i\n", lfa.lfWeight); + ok(lfa.lfCharSet == SYMBOL_CHARSET, "Expected SYMBOL_CHARSET, got %i\n", lfa.lfCharSet); ok(strcmp(lfa.lfFaceName, "Symbol") == 0, "Expected Symbol, got %s\n", lfa.lfFaceName);
+ cfa.Flags = CF_ENABLEHOOK|CF_INITTOLOGFONTSTRUCT|CF_SCREENFONTS|CF_NOSCRIPTSEL; + ret = ChooseFontA(&cfa); + ok(ret == TRUE, "ChooseFontA returned FALSE\n"); + todo_wine ok(lfa.lfCharSet == DEFAULT_CHARSET, "Expected DEFAULT_CHARSET, got %i\n", lfa.lfCharSet); + printer_ic = get_printer_ic(); if (!printer_ic) skip("can't get a DC for a local printer\n");