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
8422c98d
Commit
8422c98d
authored
Apr 20, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Apr 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Fix a test that fails on all systems.
parent
603822ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
9 deletions
+21
-9
imm32.c
dlls/imm32/tests/imm32.c
+21
-9
No files found.
dlls/imm32/tests/imm32.c
View file @
8422c98d
...
...
@@ -177,12 +177,16 @@ static int test_ImmNotifyIME(void) {
static
const
char
string
[]
=
"wine"
;
char
resstr
[
16
]
=
""
;
HIMC
imc
;
BOOL
ret
;
imc
=
ImmGetContext
(
hwnd
);
msg_spy_flush_msgs
();
ok
(
ImmNotifyIME
(
imc
,
NI_COMPOSITIONSTR
,
CPS_CANCEL
,
0
),
"Canceling an "
"empty composition string succeeds.
\n
"
);
todo_wine
{
ok
(
!
ImmNotifyIME
(
imc
,
NI_COMPOSITIONSTR
,
CPS_CANCEL
,
0
),
"Canceling an "
"empty composition string should fail.
\n
"
);
}
ok
(
!
msg_spy_find_msg
(
WM_IME_COMPOSITION
),
"Windows does not post "
"WM_IME_COMPOSITION in response to NI_COMPOSITIONSTR / CPS_CANCEL, if "
"the composition string being canceled is empty.
\n
"
);
...
...
@@ -191,16 +195,24 @@ static int test_ImmNotifyIME(void) {
ImmSetCompositionString
(
imc
,
SCS_SETSTR
,
string
,
sizeof
(
string
),
NULL
,
0
);
ImmNotifyIME
(
imc
,
NI_COMPOSITIONSTR
,
CPS_CANCEL
,
0
);
ok
(
msg_spy_find_msg
(
WM_IME_COMPOSITION
)
!=
NULL
,
"Windows does post "
"WM_IME_COMPOSITION in response to NI_COMPOSITIONSTR / CPS_CANCEL, if "
"the composition string being canceled is non empty.
\n
"
);
ok
(
!
ImmGetCompositionString
(
imc
,
GCS_COMPSTR
,
resstr
,
sizeof
(
resstr
)),
"After being canceled the composition string is empty.
\n
"
);
todo_wine
{
ok
(
!
msg_spy_find_msg
(
WM_IME_COMPOSITION
),
"Windows does not post "
"WM_IME_COMPOSITION in response to NI_COMPOSITIONSTR / CPS_CANCEL, if "
"the composition string being canceled is non empty.
\n
"
);
}
/* behavior differs between win9x and NT */
ret
=
ImmGetCompositionString
(
imc
,
GCS_COMPSTR
,
resstr
,
sizeof
(
resstr
));
ok
(
ret
||
!
ret
,
"You'll never read this.
\n
"
);
msg_spy_flush_msgs
();
ok
(
ImmNotifyIME
(
imc
,
NI_COMPOSITIONSTR
,
CPS_CANCEL
,
0
),
"Canceling an "
"empty composition string succeeds.
\n
"
);
todo_wine
{
ok
(
!
ImmNotifyIME
(
imc
,
NI_COMPOSITIONSTR
,
CPS_CANCEL
,
0
),
"Canceling an "
"empty composition string should fail.
\n
"
);
}
ok
(
!
msg_spy_find_msg
(
WM_IME_COMPOSITION
),
"Windows does not post "
"WM_IME_COMPOSITION in response to NI_COMPOSITIONSTR / CPS_CANCEL, if "
"the composition string being canceled is empty.
\n
"
);
...
...
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