[2/2] mlang/tests: add test for fnIMLangFontLink_GetCharCodePages

Dmitry Timoshkov dmitry at codeweavers.com
Sat Aug 2 22:05:51 CDT 2008


"Vitaly Perov" <vitperov at etersoft.ru> wrote:

> +    /* Tests for GetCharCodePages */
> +    /* Latin 1 */
> +    ok(IMLangFontLink_GetCharCodePages(iMLFL, 'd', &dwCodePages) == S_OK,
> +        "IMLangFontLink_GetCharCodePages failed\n");
> +    ok(dwCodePages == 2032127, "Incorrect CodePages returned (%i)\n", dwCodePages);
> +
> +    /* Cyrillic (Japanese, Simplified Chinese and Korean are also
> +       include these symbols) */
> +    ok(IMLangFontLink_GetCharCodePages(iMLFL, 0x0436, &dwCodePages) == S_OK,
> +        "IMLangFontLink_GetCharCodePages failed\n");
> +    ok(dwCodePages == 917508, "Incorrect CodePages returned (%i)\n", dwCodePages);
> +
> +    /* Japanese */
> +    ok(IMLangFontLink_GetCharCodePages(iMLFL, 0xff6f, &dwCodePages) == S_OK,
> +        "IMLangFontLink_GetCharCodePages failed\n");
> +    ok(dwCodePages == 131072, "Incorrect CodePages returned (%i)\n", dwCodePages);

Please use symbolic names for code pages bit field.

-- 
Dmitry.



More information about the wine-devel mailing list