user32/tests: Test for caption width of 13 on japanese W7

Huw Davies huw at codeweavers.com
Tue Jul 21 14:44:27 CDT 2015


On 21 Jul 2015, at 19:32, André Hentschel wrote:
> --- a/dlls/user32/tests/sysparams.c
> +++ b/dlls/user32/tests/sysparams.c
> @@ -1554,8 +1554,9 @@ static void test_SPI_SETNONCLIENTMETRICS( void )               /*     44 */
> 
>     ok( Ncmcur.iCaptionWidth == 8 ||
>         Ncmcur.iCaptionWidth == 12 || /* Vista, W7b */
> +        Ncmcur.iCaptionWidth == 13 || /* Win7 japanese */
>         Ncmcur.iCaptionWidth == Ncmstart.iCaptionWidth, /* with windows XP theme,  the value never changes */
> -        "CaptionWidth: %d expected 8, 12 or %d\n", Ncmcur.iCaptionWidth, Ncmstart.iCaptionWidth);
> +        "CaptionWidth: %d expected 8, 12, 13 or %d\n", Ncmcur.iCaptionWidth, Ncmstart.iCaptionWidth);
>     ok( Ncmcur.iScrollWidth == 8,
>         "ScrollWidth: %d expected 8\n", Ncmcur.iScrollWidth);
>     ok( Ncmcur.iScrollHeight == 8,

I deliberately haven't fixed it like this because it has already become untenable.
I suspect it should be compared to the height of the default gui font, or something like that.

Huw.




More information about the wine-devel mailing list