Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
16d2a46b
Commit
16d2a46b
authored
Sep 15, 2008
by
Aric Stewart
Committed by
Alexandre Julliard
Sep 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Include a basic ImmGetCompositionString test checking ATTR lengths.
parent
b17aa781
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
imm32.c
dlls/imm32/tests/imm32.c
+28
-0
No files found.
dlls/imm32/tests/imm32.c
View file @
16d2a46b
...
...
@@ -220,8 +220,36 @@ static int test_ImmNotifyIME(void) {
return
0
;
}
static
int
test_ImmGetCompositionString
(
void
)
{
HIMC
imc
;
static
const
WCHAR
string
[]
=
{
'w'
,
'i'
,
'n'
,
'e'
,
0x65e5
,
0x672c
,
0x8a9e
};
char
cstring
[
20
];
WCHAR
wstring
[
20
];
DWORD
len
;
DWORD
alen
,
wlen
;
imc
=
ImmGetContext
(
hwnd
);
ImmSetCompositionStringW
(
imc
,
SCS_SETSTR
,
string
,
sizeof
(
string
),
NULL
,
0
);
alen
=
ImmGetCompositionStringA
(
imc
,
GCS_COMPSTR
,
cstring
,
20
);
wlen
=
ImmGetCompositionStringW
(
imc
,
GCS_COMPSTR
,
wstring
,
20
);
/* windows machines without any IME installed just return 0 above */
if
(
alen
&&
wlen
)
{
len
=
ImmGetCompositionStringW
(
imc
,
GCS_COMPATTR
,
NULL
,
0
);
ok
(
len
*
sizeof
(
WCHAR
)
==
wlen
,
"GCS_COMPATTR(W) not returning correct count
\n
"
);
len
=
ImmGetCompositionStringA
(
imc
,
GCS_COMPATTR
,
NULL
,
0
);
ok
(
len
==
alen
,
"GCS_COMPATTR(A) not returning correct count
\n
"
);
}
ImmReleaseContext
(
hwnd
,
imc
);
return
0
;
}
START_TEST
(
imm32
)
{
if
(
init
())
{
test_ImmNotifyIME
();
test_ImmGetCompositionString
();
}
cleanup
();
}
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