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
08bfeeeb
Commit
08bfeeeb
authored
Jan 10, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Jan 24, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32/tests: Test that WM_KEYUP are passed to ImeProcessKey.
parent
f522c58c
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 @
08bfeeeb
...
...
@@ -7087,6 +7087,30 @@ static void test_ImmTranslateMessage( BOOL kbd_char_first )
},
{
0
},
};
struct
ime_call
key_down_seq
[]
=
{
{
.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
IME_PROCESS_KEY
,
.
process_key
=
{.
vkey
=
'Q'
,
.
lparam
=
MAKELONG
(
1
,
0x10
)},
},
{
.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
IME_TO_ASCII_EX
,
.
to_ascii_ex
=
{.
vkey
=
kbd_char_first
?
MAKELONG
(
'Q'
,
'q'
)
:
'Q'
,
.
vsc
=
0x10
},
},
{
0
},
};
struct
ime_call
key_up_seq
[]
=
{
{
.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
IME_PROCESS_KEY
,
.
process_key
=
{.
vkey
=
'Q'
,
.
lparam
=
MAKELONG
(
1
,
0xc010
)},
},
{
.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
IME_TO_ASCII_EX
,
.
to_ascii_ex
=
{.
vkey
=
'Q'
,
.
vsc
=
0xc010
},
},
{
0
},
};
struct
ime_call
post_messages
[]
=
{
{.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
MSG_TEST_WIN
,
.
message
=
{.
msg
=
WM_IME_STARTCOMPOSITION
,
.
wparam
=
1
}},
...
...
@@ -7169,6 +7193,8 @@ static void test_ImmTranslateMessage( BOOL kbd_char_first )
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
to_ascii_ex_3
);
i
++
)
to_ascii_ex_3
[
i
].
himc
=
himc
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
post_messages
);
i
++
)
post_messages
[
i
].
himc
=
himc
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
sent_messages
);
i
++
)
sent_messages
[
i
].
himc
=
himc
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
key_down_seq
);
i
++
)
key_down_seq
[
i
].
himc
=
himc
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
key_up_seq
);
i
++
)
key_up_seq
[
i
].
himc
=
himc
;
memset
(
ime_calls
,
0
,
sizeof
(
ime_calls
)
);
ime_call_count
=
0
;
...
...
@@ -7209,6 +7235,22 @@ static void test_ImmTranslateMessage( BOOL kbd_char_first )
ok_ret
(
1
,
ImmGenerateMessage
(
himc
)
);
ok_seq
(
empty_sequence
);
ignore_WM_IME_NOTIFY
=
TRUE
;
keybd_event
(
'Q'
,
0x10
,
0
,
0
);
flush_events
();
process_messages_
(
hwnd
);
ok_seq
(
key_down_seq
);
keybd_event
(
'Q'
,
0x10
,
KEYEVENTF_KEYUP
,
0
);
flush_events
();
process_messages_
(
hwnd
);
todo_wine
ok_seq
(
key_up_seq
);
ignore_WM_IME_NOTIFY
=
FALSE
;
ok_ret
(
1
,
ImmUnlockIMC
(
himc
)
);
ok_ret
(
1
,
ImmDestroyContext
(
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