Commit f87ad783 authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard

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
parent 6c55010e
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment