[PATCH] user32: add a DrawText test for bug 12226.

Alexandre Julliard julliard at winehq.org
Thu Mar 27 05:34:04 CDT 2008

"Lei Zhang" <thestig at google.com> writes:

> +static void test_Bug12226(void)
> +{

Please name functions according to what they do, not their bug
number. The code must be understandable without having to look things up
in bugzilla. In any case this should most likely go into the existing
test_DrawTextCalcRect() function.

> +    height = DrawTextA(hdc, "", -1, &rect,
> +                       DT_CALCRECT | DT_LEFT | DT_SINGLELINE);
> +    todo_wine ok(16 == height, "expected %d, got %d\n", 16, height);

I don't think you can hardcode 16, that should depend on the font

Alexandre Julliard
julliard at winehq.org

More information about the wine-devel mailing list