Commit 74ee5a21 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

oleacc/tests: Fix intermittent AccessibleObjectFromPoint tests failures.

parent 566c0653
......@@ -1318,7 +1318,7 @@ static void test_AccessibleObjectFromPoint(void)
ok(SetWindowLongPtrA(hwnd, GWLP_WNDPROC, (LONG_PTR)&DefWindowProcA),
"SetWindowLongPtr failed\n");
point.x = point.y = 0;
point.x = point.y = 10;
ok(ClientToScreen(hwnd, &point), "ClientToScreen failed\n");
if (WindowFromPoint(point) != hwnd)
......@@ -1355,6 +1355,12 @@ static void test_AccessibleObjectFromPoint(void)
0, 0, 100, 100, hwnd, NULL, NULL, NULL);
ok(child != NULL, "CreateWindow failed\n");
if (WindowFromPoint(point) != child)
{
win_skip("test window not returned from WindowFromPoint\n");
return;
}
hr = AccessibleObjectFromPoint(point, &acc, &cid);
ok(hr == S_OK, "got %x\n", hr);
ok(V_VT(&cid) == VT_I4, "got %#x, expected %#x\n", V_VT(&cid), VT_I4);
......
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