Commit 15a3864f authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

oleacc/tests: Check if test window has focus in test_default_client_accessible_object tests.

parent 4967d200
......@@ -1037,6 +1037,7 @@ static void test_default_client_accessible_object(void)
ShowWindow(hwnd, SW_SHOW);
SetFocus(hwnd);
hr = IAccessible_get_accFocus(acc, &v);
ok(GetFocus() == hwnd, "test window has no focus\n");
ok(hr == S_OK, "hr %#x\n", hr);
ok(V_VT(&v) == VT_I4, "V_VT(&v) = %d\n", V_VT(&v));
ok(V_I4(&v) == CHILDID_SELF, "V_I4(&v) = %d\n", V_I4(&v));
......@@ -1044,6 +1045,7 @@ static void test_default_client_accessible_object(void)
/* Set focus to each child window. */
SetFocus(btn);
hr = IAccessible_get_accFocus(acc, &v);
ok(GetFocus() == btn, "test window has no focus\n");
ok(hr == S_OK, "hr %#x\n", hr);
ok(V_VT(&v) == VT_DISPATCH, "V_VT(&v) = %d\n", V_VT(&v));
ok(V_DISPATCH(&v) != NULL, "V_DISPATCH(&v) = %p\n", V_DISPATCH(&v));
......
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