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
acac1a5b
Commit
acac1a5b
authored
Dec 02, 2008
by
Andrew Riedi
Committed by
Alexandre Julliard
Dec 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Add some really basic tests for ImmSetCompositionString().
parent
625dca9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
imm32.c
dlls/imm32/tests/imm32.c
+42
-0
No files found.
dlls/imm32/tests/imm32.c
View file @
acac1a5b
...
...
@@ -251,6 +251,47 @@ static void test_ImmGetCompositionString(void)
ImmReleaseContext
(
hwnd
,
imc
);
}
static
void
test_ImmSetCompositionString
(
void
)
{
HIMC
imc
;
BOOL
ret
;
SetLastError
(
0xdeadbeef
);
imc
=
ImmGetContext
(
hwnd
);
ok
(
imc
,
"ImmGetContext() failed. Last error: %u
\n
"
,
GetLastError
());
if
(
!
imc
)
return
;
SetLastError
(
0xdeadbeef
);
ret
=
ImmSetCompositionStringW
(
imc
,
SCS_SETSTR
,
NULL
,
0
,
NULL
,
0
);
todo_wine
ok
(
!
ret
,
"ImmSetCompositionStringW() failed. Last error: %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
ImmSetCompositionStringW
(
imc
,
SCS_SETSTR
|
SCS_CHANGEATTR
,
NULL
,
0
,
NULL
,
0
);
todo_wine
ok
(
!
ret
,
"ImmSetCompositionStringW() failed. Last error: %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
ImmSetCompositionStringW
(
imc
,
SCS_SETSTR
|
SCS_CHANGECLAUSE
,
NULL
,
0
,
NULL
,
0
);
todo_wine
ok
(
!
ret
,
"ImmSetCompositionStringW() failed. Last error: %u
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
ret
=
ImmSetCompositionStringW
(
imc
,
SCS_CHANGEATTR
|
SCS_CHANGECLAUSE
,
NULL
,
0
,
NULL
,
0
);
todo_wine
ok
(
!
ret
,
"ImmSetCompositionStringW() failed. Last error: %u
\n
"
,
GetLastError
());
ImmReleaseContext
(
hwnd
,
imc
);
}
static
void
test_ImmIME
(
void
)
{
HIMC
imc
;
...
...
@@ -272,6 +313,7 @@ START_TEST(imm32) {
{
test_ImmNotifyIME
();
test_ImmGetCompositionString
();
test_ImmSetCompositionString
();
test_ImmIME
();
}
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