Dylan Smith : richedit: Test to see if WM_SETREDRAW removes the windows visibility.

Alexandre Julliard julliard at winehq.org
Mon Oct 20 08:00:21 CDT 2008


Module: wine
Branch: master
Commit: 30ebfa6d74334fd5e4e3f209e79b26379f06357e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=30ebfa6d74334fd5e4e3f209e79b26379f06357e

Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date:   Sun Oct 19 04:42:57 2008 -0400

richedit: Test to see if WM_SETREDRAW removes the windows visibility.

---

 dlls/riched20/tests/editor.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c
index 0036a4b..b1b7101 100644
--- a/dlls/riched20/tests/editor.c
+++ b/dlls/riched20/tests/editor.c
@@ -5186,7 +5186,10 @@ static void test_eventMask(void)
 
     /* check to see if EN_CHANGE is sent when redraw is turned off */
     SendMessage(eventMaskEditHwnd, WM_CLEAR, 0, 0);
+    ok(IsWindowVisible(eventMaskEditHwnd), "Window should be visible.\n");
     SendMessage(eventMaskEditHwnd, WM_SETREDRAW, FALSE, 0);
+    /* redraw is disabled by making the window invisible. */
+    todo_wine ok(!IsWindowVisible(eventMaskEditHwnd), "Window shouldn't be visible.\n");
     queriedEventMask = 0;  /* initialize to something other than we expect */
     SendMessage(eventMaskEditHwnd, EM_REPLACESEL, 0, (LPARAM) text);
     ok(queriedEventMask == (eventMask & ~ENM_CHANGE),




More information about the wine-cvs mailing list