Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d2a9bcd1
Commit
d2a9bcd1
authored
Oct 29, 2008
by
Vitaly Perov
Committed by
Alexandre Julliard
Nov 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang/tests: Add tests for fnIMLangFontLink_GetCharCodePages.
parent
4398c51f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
mlang.c
dlls/mlang/tests/mlang.c
+23
-0
No files found.
dlls/mlang/tests/mlang.c
View file @
d2a9bcd1
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment