[2/2] comctl32/tests: Added scrolled listview test for LVM_GETSUBITEMRECT.

Dylan Smith dylan.ah.smith at gmail.com
Wed Mar 3 01:39:14 CST 2010


This test is for the regression that caused Bug 21898.
---
 dlls/comctl32/tests/listview.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index 8bcd7a4..5441cfc 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -2135,6 +2135,18 @@ todo_wine
     expect(100, rect.left);
     expect(250, rect.right);
 
+    ListView_Scroll(hwnd, 10, 0);
+
+    rect.left = LVIR_BOUNDS;
+    rect.top  = 1;
+    rect.right = rect.bottom = 0;
+    r = SendMessage(hwnd, LVM_GETSUBITEMRECT, 0, (LPARAM)&rect);
+    ok(r != 0, "Expected not-null LRESULT\n");
+    expect(90, rect.left);
+    expect(240, rect.right);
+
+    ListView_Scroll(hwnd, -10, 0);
+
     DestroyWindow(hwnd);
 
     /* try it for non LVS_REPORT style */
-- 
1.6.3.3



More information about the wine-patches mailing list