Commit 6a4fb894 authored by Brendan McGrath's avatar Brendan McGrath Committed by Alexandre Julliard

comctl32/tests: Modify test_width to try different fonts.

parent 8934a53e
......@@ -676,6 +676,26 @@ static void test_tab(INT nMinTabWidth)
static void test_width(void)
{
HFONT oldFont = hFont;
const char *fonts[] = {
"System",
"Arial",
"Tahoma",
"Courier New",
"MS Shell Dlg",
};
LOGFONTA logfont = {
.lfHeight = -12,
.lfWeight = FW_NORMAL,
.lfCharSet = ANSI_CHARSET
};
for(int i = 0; i < sizeof(fonts)/sizeof(fonts[0]); i++) {
trace ("Testing with the '%s' font\n", fonts[i]);
lstrcpyA(logfont.lfFaceName, fonts[i]);
hFont = CreateFontIndirectA(&logfont);
trace ("Testing with default MinWidth\n");
test_tab(-1);
trace ("Testing with MinWidth set to -3\n");
......@@ -686,6 +706,9 @@ static void test_width(void)
test_tab(54);
trace ("Testing with MinWidth set to 94\n");
test_tab(94);
}
hFont = oldFont;
}
static void test_setitemsize(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment