Dylan Smith : richedit: Test changes in scrollbar' s visibility with redraw disabled.
Alexandre Julliard
julliard at winehq.org
Sat Oct 18 13:38:54 CDT 2008
Module: wine
Branch: master
Commit: 582bdadeff3a5126b4696324086de170de5bf4ed
URL: http://source.winehq.org/git/wine.git/?a=commit;h=582bdadeff3a5126b4696324086de170de5bf4ed
Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date: Fri Oct 17 21:29:48 2008 -0400
richedit: Test changes in scrollbar's visibility with redraw disabled.
Test to verify that the scrollbar does need to be shown or hidden while
redraw is disabled.
---
dlls/riched20/tests/editor.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c
index 68f2262..3f98f30 100644
--- a/dlls/riched20/tests/editor.c
+++ b/dlls/riched20/tests/editor.c
@@ -5592,6 +5592,11 @@ static void test_auto_yscroll(void)
todo_wine ok(pt.y != 0, "Didn't scroll down after replacing text.\n");
else
ok(pt.y != 0, "Didn't scroll down after replacing text.\n");
+ ret = GetWindowLong(hwnd, GWL_STYLE);
+ if (!redraw)
+ todo_wine ok(ret & WS_VSCROLL, "Scrollbar was not shown yet (style=%x).\n", (UINT)ret);
+ else
+ ok(ret & WS_VSCROLL, "Scrollbar was not shown yet (style=%x).\n", (UINT)ret);
SendMessage(hwnd, WM_SETTEXT, 0, (LPARAM)NULL);
lines = SendMessage(hwnd, EM_GETLINECOUNT, 0, 0);
@@ -5599,6 +5604,8 @@ static void test_auto_yscroll(void)
ret = SendMessage(hwnd, EM_GETSCROLLPOS, 0, (LPARAM)&pt);
ok(ret == 1, "EM_GETSCROLLPOS returned %d instead of 1\n", ret);
ok(pt.y == 0, "y scroll position is %d after clearing text.\n", pt.y);
+ ret = GetWindowLong(hwnd, GWL_STYLE);
+ ok(!(ret & WS_VSCROLL), "Scrollbar is still shown (style=%x).\n", (UINT)ret);
}
SendMessage(hwnd, WM_SETREDRAW, TRUE, 0);
More information about the wine-cvs
mailing list