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
d8a075dc
Commit
d8a075dc
authored
Jan 31, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Jan 31, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32/tests: Fix some spurious failures with Windows ko_KR IME.
Still fails spuriously from time to time as the IME sometimes doesn't kick in, but hopefully less often.
parent
8b04d345
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
12 deletions
+24
-12
imm32.c
dlls/imm32/tests/imm32.c
+24
-12
No files found.
dlls/imm32/tests/imm32.c
View file @
d8a075dc
...
...
@@ -7092,11 +7092,11 @@ static void test_ImmTranslateMessage( BOOL kbd_char_first )
{
{
.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
IME_PROCESS_KEY
,
.
process_key
=
{.
vkey
=
'Q'
,
.
lparam
=
MAKELONG
(
1
,
0x10
)},
.
process_key
=
{.
vkey
=
VK_RETURN
,
.
lparam
=
MAKELONG
(
1
,
0x1c
)},
},
{
.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
IME_TO_ASCII_EX
,
.
to_ascii_ex
=
{.
vkey
=
kbd_char_first
?
MAKELONG
(
'Q'
,
'q'
)
:
'Q'
,
.
vsc
=
0x10
},
.
to_ascii_ex
=
{.
vkey
=
kbd_char_first
?
MAKELONG
(
VK_RETURN
,
VK_RETURN
)
:
VK_RETURN
,
.
vsc
=
0x1c
},
},
{
0
},
};
...
...
@@ -7104,11 +7104,11 @@ static void test_ImmTranslateMessage( BOOL kbd_char_first )
{
{
.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
IME_PROCESS_KEY
,
.
process_key
=
{.
vkey
=
'Q'
,
.
lparam
=
MAKELONG
(
1
,
0xc010
)},
.
process_key
=
{.
vkey
=
VK_RETURN
,
.
lparam
=
MAKELONG
(
1
,
0xc01c
)},
},
{
.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
IME_TO_ASCII_EX
,
.
to_ascii_ex
=
{.
vkey
=
'Q'
,
.
vsc
=
0xc010
},
.
to_ascii_ex
=
{.
vkey
=
VK_RETURN
,
.
vsc
=
0xc01c
},
},
{
0
},
};
...
...
@@ -7240,12 +7240,12 @@ static void test_ImmTranslateMessage( BOOL kbd_char_first )
ignore_WM_IME_NOTIFY
=
TRUE
;
ignore_IME_NOTIFY
=
TRUE
;
keybd_event
(
'Q'
,
0x10
,
0
,
0
);
keybd_event
(
VK_RETURN
,
0x1c
,
0
,
0
);
flush_events
();
process_messages_
(
hwnd
);
ok_seq
(
key_down_seq
);
keybd_event
(
'Q'
,
0x10
,
KEYEVENTF_KEYUP
,
0
);
keybd_event
(
VK_RETURN
,
0x1c
,
KEYEVENTF_KEYUP
,
0
);
flush_events
();
process_messages_
(
hwnd
);
ok_seq
(
key_up_seq
);
...
...
@@ -7500,6 +7500,9 @@ static void test_ga_na_da(void)
ok
(
!!
hwnd
,
"CreateWindowW failed, error %lu
\n
"
,
GetLastError
()
);
flush_events
();
ignore_WM_IME_NOTIFY
=
TRUE
;
ignore_IME_NOTIFY
=
TRUE
;
himc
=
ImmCreateContext
();
ok_ne
(
NULL
,
himc
,
HIMC
,
"%p"
);
ctx
=
ImmLockIMC
(
himc
);
...
...
@@ -7508,6 +7511,15 @@ static void test_ga_na_da(void)
ok_ret
(
1
,
ImmSetOpenStatus
(
himc
,
TRUE
)
);
ok_ret
(
1
,
ImmSetConversionStatus
(
himc
,
IME_CMODE_FULLSHAPE
|
IME_CMODE_NATIVE
,
IME_SMODE_PHRASEPREDICT
)
);
flush_events
();
keybd_event
(
'R'
,
0x13
,
0
,
0
);
flush_events
();
keybd_event
(
'R'
,
0x13
,
KEYEVENTF_KEYUP
,
0
);
keybd_event
(
VK_RETURN
,
0x1c
,
0
,
0
);
flush_events
();
keybd_event
(
VK_RETURN
,
0x1c
,
KEYEVENTF_KEYUP
,
0
);
flush_events
();
memset
(
ime_calls
,
0
,
sizeof
(
ime_calls
)
);
ime_call_count
=
0
;
...
...
@@ -7608,9 +7620,6 @@ static void test_ga_na_da(void)
todo_wine
ok_seq
(
partial_return_seq
);
ignore_WM_IME_NOTIFY
=
TRUE
;
ignore_IME_NOTIFY
=
TRUE
;
/* cancelling clears the composition string */
keybd_event
(
'R'
,
0x13
,
0
,
0
);
...
...
@@ -8033,6 +8042,12 @@ START_TEST(imm32)
test_ImmEnumInputContext
();
/* run these before installing the custom IME, sometimes it takes a moment
* to uninstall and the default IME doesn't activate immediately
*/
test_ga_na_da
();
test_nihongo_no
();
test_ImmInstallIME
();
wineime_hkl
=
ime_install
();
...
...
@@ -8084,9 +8099,6 @@ START_TEST(imm32)
if
(
wineime_hkl
)
ime_cleanup
(
wineime_hkl
,
TRUE
);
test_ga_na_da
();
test_nihongo_no
();
if
(
init
())
{
test_ImmNotifyIME
();
...
...
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