[2/3] comctl32/listview: Fix some LVM_GETVIEWRECT test failures on different platforms

Nikolay Sivov bunglehead at gmail.com
Tue May 26 16:35:06 CDT 2009


Changelog:
    - Fix some LVM_GETVIEWRECT test failures on different platforms

>From f65a2579cfad4309e4c442576f59b1f56a1c9312 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Tue, 26 May 2009 20:33:28 +0400
Subject: Fix some LVM_GETVIEWRECT test failures on different platforms

---
 dlls/comctl32/tests/listview.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index fdf3a3d..3f499f6 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -2497,9 +2497,10 @@ static void test_getviewrect(void)
     r = SendMessage(hwnd, LVM_GETVIEWRECT, 0, (LPARAM)&rect);
     expect(TRUE, r);
     expect(0, rect.left);
-    todo_wine expect(104, rect.right);
     expect(0, rect.top);
-    expect(73, rect.bottom);
+    /* precise value differs for 2k, XP and Vista */
+    ok(rect.bottom > 0, "Expected positive bottom value, got %d\n", rect.bottom);
+    ok(rect.right  > 0, "Expected positive right value, got %d\n", rect.right);
 
     DestroyWindow(hwnd);
 }
-- 
1.5.6.5







More information about the wine-patches mailing list