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
5f7094ff
Commit
5f7094ff
authored
Jan 15, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Jan 17, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32/tests: Add todo_himc to some ImmTranslateMessage expected calls.
Wine-Bug:
https://bugs.winehq.org//show_bug.cgi?id=55491
parent
28b75e9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
imm32.c
dlls/imm32/tests/imm32.c
+20
-5
No files found.
dlls/imm32/tests/imm32.c
View file @
5f7094ff
...
...
@@ -385,6 +385,7 @@ struct ime_call
BOOL
broken
;
BOOL
flaky_himc
;
BOOL
todo_value
;
BOOL
todo_himc
;
};
struct
ime_call
empty_sequence
[]
=
{{
0
}};
...
...
@@ -399,7 +400,13 @@ static int ok_call_( const char *file, int line, const struct ime_call *expected
if
((
ret
=
expected
->
func
-
received
->
func
))
goto
done
;
/* Wine doesn't allocate HIMC in a deterministic order, ignore them when they are enumerated */
if
(
expected
->
flaky_himc
&&
(
ret
=
!!
(
UINT_PTR
)
expected
->
himc
-
!!
(
UINT_PTR
)
received
->
himc
))
goto
done
;
if
(
!
expected
->
flaky_himc
&&
(
ret
=
(
UINT_PTR
)
expected
->
himc
-
(
UINT_PTR
)
received
->
himc
))
goto
done
;
if
(
!
expected
->
flaky_himc
&&
(
ret
=
(
UINT_PTR
)
expected
->
himc
-
(
UINT_PTR
)
received
->
himc
))
{
/* on some Wine configurations the IME UI doesn't get an HIMC */
if
(
!
winetest_platform_is_wine
||
!
expected
->
todo_himc
)
goto
done
;
else
todo_wine
ok
(
0
,
"got himc %p
\n
"
,
received
->
himc
);
}
if
((
ret
=
(
UINT
)(
UINT_PTR
)
expected
->
hkl
-
(
UINT
)(
UINT_PTR
)
received
->
hkl
))
goto
done
;
switch
(
expected
->
func
)
{
...
...
@@ -7081,17 +7088,25 @@ static void test_ImmTranslateMessage( BOOL kbd_char_first )
struct
ime_call
post_messages
[]
=
{
{.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
MSG_TEST_WIN
,
.
message
=
{.
msg
=
WM_IME_STARTCOMPOSITION
,
.
wparam
=
1
}},
{.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
MSG_IME_UI
,
.
message
=
{.
msg
=
WM_IME_STARTCOMPOSITION
,
.
wparam
=
1
}},
{.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
MSG_IME_UI
,
.
message
=
{.
msg
=
WM_IME_STARTCOMPOSITION
,
.
wparam
=
1
},
.
todo_himc
=
TRUE
/* on some Wine configurations the IME UI doesn't get an HIMC */
},
{.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
MSG_TEST_WIN
,
.
message
=
{.
msg
=
WM_IME_ENDCOMPOSITION
,
.
wparam
=
1
}},
{.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
MSG_IME_UI
,
.
message
=
{.
msg
=
WM_IME_ENDCOMPOSITION
,
.
wparam
=
1
}},
{.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
MSG_IME_UI
,
.
message
=
{.
msg
=
WM_IME_ENDCOMPOSITION
,
.
wparam
=
1
},
.
todo_himc
=
TRUE
/* on some Wine configurations the IME UI doesn't get an HIMC */
},
{
0
},
};
struct
ime_call
sent_messages
[]
=
{
{.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
MSG_TEST_WIN
,
.
message
=
{.
msg
=
WM_IME_STARTCOMPOSITION
,
.
wparam
=
2
}},
{.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
MSG_IME_UI
,
.
message
=
{.
msg
=
WM_IME_STARTCOMPOSITION
,
.
wparam
=
2
}},
{.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
MSG_IME_UI
,
.
message
=
{.
msg
=
WM_IME_STARTCOMPOSITION
,
.
wparam
=
2
},
.
todo_himc
=
TRUE
/* on some Wine configurations the IME UI doesn't get an HIMC */
},
{.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
MSG_TEST_WIN
,
.
message
=
{.
msg
=
WM_IME_ENDCOMPOSITION
,
.
wparam
=
2
}},
{.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
MSG_IME_UI
,
.
message
=
{.
msg
=
WM_IME_ENDCOMPOSITION
,
.
wparam
=
2
}},
{.
hkl
=
expect_ime
,
.
himc
=
0
/*himc*/
,
.
func
=
MSG_IME_UI
,
.
message
=
{.
msg
=
WM_IME_ENDCOMPOSITION
,
.
wparam
=
2
},
.
todo_himc
=
TRUE
/* on some Wine configurations the IME UI doesn't get an HIMC */
},
{
0
},
};
HWND
hwnd
,
other_hwnd
;
...
...
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