Rémi Bernon (@rbernon) commented about dlls/user32/tests/win.c:
- flush_events(TRUE);
- ret = ShowWindow(hwnd, SW_SHOWNORMAL);
- ok(ret, "unexpected ret: %Iu\n", ret);
- flush_events(TRUE);
- /* Wait until window manager animation finishes */
- Sleep(500);
- /* Test if window is really in normal state by testing the color on the screen because win32
* states such as WS_MINIMIZE may not reflect the actual x11 window state */
- screen_dc = GetDC(GetDesktopWindow());
- mem_dc = CreateCompatibleDC(screen_dc);
- mem_bitmap = CreateCompatibleBitmap(screen_dc, 200, 200);
- SelectObject(mem_dc, mem_bitmap);
- BitBlt(mem_dc, 0, 0, 200, 200, screen_dc, 0, 0, SRCCOPY);
This doesn't look very reliable, I think we could do without tests in this case.