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
4a52781e
Commit
4a52781e
authored
Mar 31, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32/tests: Add some spurious IME select calls.
Seen with the Korean locale from time to time, probably caused by some uninitialized input context data.
parent
3ed1bb24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
3 deletions
+39
-3
imm32.c
dlls/imm32/tests/imm32.c
+39
-3
No files found.
dlls/imm32/tests/imm32.c
View file @
4a52781e
...
...
@@ -4554,6 +4554,26 @@ static void test_ImmCreateInputContext(void)
struct
ime_call
select1_seq
[]
=
{
{
.
hkl
=
expect_ime
,
.
himc
=
0
/*himc[0]*/
,
.
func
=
IME_NOTIFY
,
.
notify
=
{.
action
=
NI_CONTEXTUPDATED
,
.
index
=
0
,
.
value
=
IMC_SETOPENSTATUS
},
.
todo
=
TRUE
,
.
flaky_himc
=
TRUE
,
.
broken
=
TRUE
/* sometimes */
,
},
{
.
hkl
=
expect_ime
,
.
himc
=
default_himc
,
.
func
=
IME_NOTIFY
,
.
notify
=
{.
action
=
NI_CONTEXTUPDATED
,
.
index
=
0
,
.
value
=
IMC_SETOPENSTATUS
},
.
todo
=
TRUE
,
.
flaky_himc
=
TRUE
,
.
broken
=
TRUE
/* sometimes */
,
},
{
.
hkl
=
expect_ime
,
.
himc
=
default_himc
,
.
func
=
MSG_IME_UI
,
.
message
=
{.
msg
=
WM_IME_NOTIFY
,
.
wparam
=
IMN_SETOPENSTATUS
},
.
todo
=
TRUE
,
.
broken
=
TRUE
/* sometimes */
,
},
{
.
hkl
=
expect_ime
,
.
himc
=
default_himc
,
.
func
=
MSG_IME_UI
,
.
message
=
{.
msg
=
WM_IME_NOTIFY
,
.
wparam
=
IMN_SETCONVERSIONMODE
},
.
todo
=
TRUE
,
.
broken
=
TRUE
/* sometimes */
,
},
{
.
hkl
=
expect_ime
,
.
himc
=
0
/*himc[1]*/
,
.
func
=
IME_SELECT
,
.
select
=
1
,
},
...
...
@@ -4667,7 +4687,8 @@ static void test_ImmCreateInputContext(void)
ok_seq
(
empty_sequence
);
ctx
=
ImmLockIMC
(
himc
[
1
]
);
ok
(
!!
ctx
,
"ImmLockIMC failed, error %lu
\n
"
,
GetLastError
()
);
select1_seq
[
0
].
himc
=
himc
[
1
];
select1_seq
[
0
].
himc
=
himc
[
0
];
select1_seq
[
4
].
himc
=
himc
[
1
];
ok_seq
(
select1_seq
);
ok_ret
(
1
,
ImmUnlockIMC
(
himc
[
1
]
)
);
...
...
@@ -4813,6 +4834,21 @@ static void test_ImmSetActiveContext(void)
struct
ime_call
deactivate_1_seq
[]
=
{
{
.
hkl
=
expect_ime
,
.
himc
=
default_himc
,
.
func
=
IME_NOTIFY
,
.
notify
=
{.
action
=
NI_CONTEXTUPDATED
,
.
index
=
0
,
.
value
=
IMC_SETOPENSTATUS
},
.
todo
=
TRUE
,
.
flaky_himc
=
TRUE
,
.
broken
=
TRUE
/* sometimes */
,
},
{
.
hkl
=
expect_ime
,
.
himc
=
default_himc
,
.
func
=
MSG_IME_UI
,
.
message
=
{.
msg
=
WM_IME_NOTIFY
,
.
wparam
=
IMN_SETOPENSTATUS
},
.
todo
=
TRUE
,
.
broken
=
TRUE
/* sometimes */
,
},
{
.
hkl
=
expect_ime
,
.
himc
=
default_himc
,
.
func
=
MSG_IME_UI
,
.
message
=
{.
msg
=
WM_IME_NOTIFY
,
.
wparam
=
IMN_SETCONVERSIONMODE
},
.
todo
=
TRUE
,
.
broken
=
TRUE
/* sometimes */
,
},
{
.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
IME_SELECT
,
.
select
=
1
,
},
...
...
@@ -4867,8 +4903,8 @@ static void test_ImmSetActiveContext(void)
himc
=
ImmCreateContext
();
ok_ne
(
NULL
,
himc
,
HIMC
,
"%p"
);
ok_ret
(
1
,
ImmSetActiveContext
(
hwnd
,
himc
,
FALSE
)
);
deactivate_1_seq
[
0
].
himc
=
himc
;
deactivate_1_seq
[
1
].
himc
=
himc
;
deactivate_1_seq
[
3
].
himc
=
himc
;
deactivate_1_seq
[
4
].
himc
=
himc
;
ok_seq
(
deactivate_1_seq
);
ok_ret
(
1
,
ImmSetActiveContext
(
hwnd
,
himc
,
TRUE
)
);
activate_1_seq
[
0
].
himc
=
himc
;
...
...
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