Vitaly Perov : mlang/tests: Add tests for fnIMLangFontLink_GetCharCodePages .
Alexandre Julliard
julliard at winehq.org
Fri Nov 28 07:16:42 CST 2008
Module: wine
Branch: master
Commit: d2a9bcd199fae41996c94320e50b5a7b0625e329
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d2a9bcd199fae41996c94320e50b5a7b0625e329
Author: Vitaly Perov <vitperov at etersoft.ru>
Date: Wed Oct 29 17:30:27 2008 +0300
mlang/tests: Add tests for fnIMLangFontLink_GetCharCodePages.
---
dlls/mlang/tests/mlang.c | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/dlls/mlang/tests/mlang.c b/dlls/mlang/tests/mlang.c
index 0cec2c7..fe1edf9 100644
--- a/dlls/mlang/tests/mlang.c
+++ b/dlls/mlang/tests/mlang.c
@@ -647,6 +647,7 @@ static void test_EnumScripts(IMultiLanguage2 *iML2, DWORD flags)
static void IMLangFontLink_Test(IMLangFontLink* iMLFL)
{
DWORD dwCodePages, dwManyCodePages;
+ DWORD dwCmpCodePages;
UINT CodePage;
HRESULT ret;
@@ -685,6 +686,28 @@ static void IMLangFontLink_Test(IMLangFontLink* iMLFL)
ret = IMLangFontLink_CodePagesToCodePage(iMLFL, dwManyCodePages, 936, &CodePage);
ok(ret == S_OK, "IMLangFontLink_CodePagesToCodePage error %x\n", ret);
ok(CodePage == 1252, "Incorrect CodePage Returned (%i)\n",CodePage);
+
+ /* Tests for GetCharCodePages */
+
+ /* Latin 1 */
+ dwCmpCodePages = FS_LATIN1 | FS_LATIN2 | FS_CYRILLIC | FS_GREEK | FS_TURKISH
+ | FS_HEBREW | FS_ARABIC | FS_BALTIC | FS_VIETNAMESE | FS_THAI
+ | FS_JISJAPAN | FS_CHINESESIMP | FS_WANSUNG | FS_CHINESETRAD;
+ ok(IMLangFontLink_GetCharCodePages(iMLFL, 'd', &dwCodePages) == S_OK,
+ "IMLangFontLink_GetCharCodePages failed\n");
+ ok(dwCodePages == dwCmpCodePages, "Incorrect CodePages returned (%i)\n", dwCodePages);
+
+ /* Cyrillic */
+ dwCmpCodePages = FS_CYRILLIC | FS_JISJAPAN | FS_CHINESESIMP | FS_WANSUNG;
+ ok(IMLangFontLink_GetCharCodePages(iMLFL, 0x0436, &dwCodePages) == S_OK,
+ "IMLangFontLink_GetCharCodePages failed\n");
+ ok(dwCodePages == dwCmpCodePages, "Incorrect CodePages returned (%i)\n", dwCodePages);
+
+ /* Japanese */
+ dwCmpCodePages = FS_JISJAPAN;
+ ok(IMLangFontLink_GetCharCodePages(iMLFL, 0xff90, &dwCodePages) == S_OK,
+ "IMLangFontLink_GetCharCodePages failed\n");
+ ok(dwCodePages == dwCmpCodePages, "Incorrect CodePages returned (%i)\n", dwCodePages);
}
/* copied from libs/wine/string.c */
More information about the wine-cvs
mailing list