Nikolay Sivov : comctl32/listview: A bunch of LVM_GETSUBITEMRECT tests.
Alexandre Julliard
julliard at winehq.org
Fri May 29 09:15:51 CDT 2009
Module: wine
Branch: master
Commit: 6101a48089085e4222e95b76232d43f9658641f9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6101a48089085e4222e95b76232d43f9658641f9
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Fri May 29 00:58:10 2009 +0400
comctl32/listview: A bunch of LVM_GETSUBITEMRECT tests.
---
dlls/comctl32/tests/listview.c | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index 4c4022d..003f98f 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -1827,6 +1827,41 @@ todo_wine
todo_wine
expect(3, rect.top);
+ /* item LVS_REPORT padding isn't applied to subitems */
+ insert_item(hwnd, 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");
+todo_wine {
+ expect(100, rect.left);
+ expect(250, rect.right);
+}
+
+ rect.left = LVIR_ICON;
+ rect.top = 1;
+ rect.right = rect.bottom = 0;
+ r = SendMessage(hwnd, LVM_GETSUBITEMRECT, 0, (LPARAM)&rect);
+ ok(r != 0, "Expected not-null LRESULT\n");
+ /* no icon attached - zero width rectangle */
+todo_wine {
+ expect(100, rect.left);
+ expect(100, rect.right);
+}
+
+ rect.left = LVIR_LABEL;
+ rect.top = 1;
+ rect.right = rect.bottom = 0;
+ r = SendMessage(hwnd, LVM_GETSUBITEMRECT, 0, (LPARAM)&rect);
+ ok(r != 0, "Expected not-null LRESULT\n");
+ /* should equal to LVIR_BOUNDS */
+todo_wine {
+ expect(100, rect.left);
+ expect(250, rect.right);
+}
+
DestroyWindow(hwnd);
/* try it for non LVS_REPORT style */
More information about the wine-cvs
mailing list