Austin English : user32/tests: Check return value of GetUpdateRect in test_validatergn.
Alexandre Julliard
julliard at winehq.org
Thu May 27 10:46:41 CDT 2010
Module: wine
Branch: master
Commit: 6487f3397a1a82405224f23390c3e2f3b7562e48
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6487f3397a1a82405224f23390c3e2f3b7562e48
Author: Austin English <austinenglish at gmail.com>
Date: Wed May 26 15:19:46 2010 -0500
user32/tests: Check return value of GetUpdateRect in test_validatergn.
---
dlls/user32/tests/win.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index 8f0f42d..eadad3a 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -3213,10 +3213,12 @@ static void test_validatergn(HWND hwnd)
GetWindowRect( child, &rc);
MapWindowPoints( NULL, hwnd, (POINT*) &rc, 2);
ret = GetUpdateRect( child, &rc2, 0);
+ ok( ret == 1, "Expected GetUpdateRect to return non-zero, got %d\n", ret);
ok( rc2.right > rc2.left && rc2.bottom > rc2.top,
"Update rectangle is empty!\n");
ValidateRect( hwnd, &rc);
ret = GetUpdateRect( child, &rc2, 0);
+ ok( !ret, "Expected GetUpdateRect to return zero, got %d\n", ret);
ok( rc2.left == 0 && rc2.top == 0 && rc2.right == 0 && rc2.bottom == 0,
"Update rectangle %d,%d-%d,%d is not empty!\n", rc2.left, rc2.top,
rc2.right, rc2.bottom);
@@ -3228,6 +3230,7 @@ static void test_validatergn(HWND hwnd)
rgn = CreateRectRgnIndirect( &rc);
ValidateRgn( hwnd, rgn);
ret = GetUpdateRect( child, &rc2, 0);
+ ok( !ret, "Expected GetUpdateRect to return zero, got %d\n", ret);
ok( rc2.left == 0 && rc2.top == 0 && rc2.right == 0 && rc2.bottom == 0,
"Update rectangle %d,%d-%d,%d is not empty!\n", rc2.left, rc2.top,
rc2.right, rc2.bottom);
More information about the wine-cvs
mailing list