Rafał Harabień : user32/tests: Check client rect in static control tests.
Alexandre Julliard
julliard at winehq.org
Wed Feb 23 16:00:05 CST 2022
Module: wine
Branch: master
Commit: b52e0dc64a4c07e209e5b33acff289d58c2ee103
URL: https://source.winehq.org/git/wine.git/?a=commit;h=b52e0dc64a4c07e209e5b33acff289d58c2ee103
Author: Rafał Harabień <rafalh92 at outlook.com>
Date: Fri Feb 18 01:41:37 2022 +0100
user32/tests: Check client rect in static control tests.
Signed-off-by: Rafał Harabień <rafalh92 at outlook.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/tests/static.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/dlls/user32/tests/static.c b/dlls/user32/tests/static.c
index feb0c10c9e8..fe6ca1243a7 100644
--- a/dlls/user32/tests/static.c
+++ b/dlls/user32/tests/static.c
@@ -80,7 +80,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara
static void test_updates(int style, int flags)
{
- RECT r1 = {20, 20, 30, 30};
+ RECT r1 = {20, 20, 30, 30}, rcClient;
HWND hStatic = build_static(style);
int exp;
LONG exstyle;
@@ -94,6 +94,16 @@ static void test_updates(int style, int flags)
else
ok(exstyle == 0, "expected 0, got %d\n", exstyle);
+ GetClientRect(hStatic, &rcClient);
+ if (style == SS_ETCHEDVERT)
+ todo_wine ok(rcClient.right == 0, "expected zero width, got %d\n", rcClient.right);
+ else
+ ok(rcClient.right > 0, "expected non-zero width, got %d\n", rcClient.right);
+ if (style == SS_ETCHEDHORZ)
+ todo_wine ok(rcClient.bottom == 0, "expected zero height, got %d\n", rcClient.bottom);
+ else
+ ok(rcClient.bottom > 0, "expected non-zero height, got %d\n", rcClient.bottom);
+
g_nReceivedColorStatic = 0;
/* during each update parent WndProc will test the WM_CTLCOLORSTATIC message */
InvalidateRect(hMainWnd, NULL, FALSE);
More information about the wine-cvs
mailing list