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

Alexandre Julliard julliard at winehq.org
Mon Feb 28 15:50:27 CST 2022


Module: wine
Branch: master
Commit: 15a3864f4dcbb844296579a66f4fb997f4fef5bf
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=15a3864f4dcbb844296579a66f4fb997f4fef5bf

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Sat Feb 26 21:12:38 2022 +0100

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

Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/oleacc/tests/main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/oleacc/tests/main.c b/dlls/oleacc/tests/main.c
index 4f8999c194a..6b0000e5f56 100644
--- a/dlls/oleacc/tests/main.c
+++ b/dlls/oleacc/tests/main.c
@@ -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));




More information about the wine-cvs mailing list