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:
Akihiro Sagawa 2022-10-10 22:01:15 +09:00 committed by Alexandre Julliard
parent 6c55010ef8
commit f87ad783e2

View file

@ -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,