mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 04:23:39 +00:00
imm32/tests: Don't expect IME window if the parent is message-only window descendant.
It has apparently changed in Win10 21H1+. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53521
This commit is contained in:
parent
6c55010ef8
commit
f87ad783e2
|
@ -1412,24 +1412,29 @@ static DWORD WINAPI test_default_ime_with_message_only_window_cb(void *arg)
|
|||
{
|
||||
HWND hwnd1, hwnd2, default_ime_wnd;
|
||||
|
||||
/* Message-only window doesn't create associated IME window. */
|
||||
test_phase = PHASE_UNKNOWN;
|
||||
hwnd1 = CreateWindowA(wndcls, "Wine imm32.dll test",
|
||||
WS_OVERLAPPEDWINDOW,
|
||||
CW_USEDEFAULT, CW_USEDEFAULT,
|
||||
240, 120, HWND_MESSAGE, NULL, GetModuleHandleW(NULL), NULL);
|
||||
default_ime_wnd = ImmGetDefaultIMEWnd(hwnd1);
|
||||
ok(!IsWindow(default_ime_wnd), "Expected no IME windows, got %p\n", default_ime_wnd);
|
||||
ok(!default_ime_wnd, "Expected no IME windows, got %p\n", default_ime_wnd);
|
||||
|
||||
/* Setting message-only window as owner at creation,
|
||||
doesn't create associated IME window. */
|
||||
hwnd2 = CreateWindowA(wndcls, "Wine imm32.dll test",
|
||||
WS_OVERLAPPEDWINDOW,
|
||||
CW_USEDEFAULT, CW_USEDEFAULT,
|
||||
240, 120, hwnd1, NULL, GetModuleHandleW(NULL), NULL);
|
||||
default_ime_wnd = ImmGetDefaultIMEWnd(hwnd2);
|
||||
ok(IsWindow(default_ime_wnd), "Expected IME window existence\n");
|
||||
todo_wine ok(!default_ime_wnd || broken(IsWindow(default_ime_wnd)), "Expected no IME windows, got %p\n", default_ime_wnd);
|
||||
|
||||
DestroyWindow(hwnd2);
|
||||
DestroyWindow(hwnd1);
|
||||
|
||||
/* Making window message-only after creation,
|
||||
doesn't disassociate IME window. */
|
||||
hwnd1 = CreateWindowA(wndcls, "Wine imm32.dll test",
|
||||
WS_OVERLAPPEDWINDOW,
|
||||
CW_USEDEFAULT, CW_USEDEFAULT,
|
||||
|
|
Loading…
Reference in a new issue