Dylan Smith : riched20/tests: Remove unnecessary SetFocus calls.

Alexandre Julliard julliard at winehq.org
Mon Sep 26 16:15:08 CDT 2011


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

Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date:   Mon Sep 26 02:29:33 2011 -0400

riched20/tests: Remove unnecessary SetFocus calls.

---

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

diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c
index 2a61f5c..d8eefbb 100644
--- a/dlls/riched20/tests/editor.c
+++ b/dlls/riched20/tests/editor.c
@@ -1541,7 +1541,6 @@ static void test_EM_SETOPTIONS(void)
     SendMessage(hwndRichEdit, EM_SETOPTIONS, ECOOP_SET, 0);
 
     /* testing no readonly by sending 'a' to the control*/
-    SetFocus(hwndRichEdit);
     SendMessage(hwndRichEdit, WM_CHAR, 'a', 0x1E0001);
     SendMessage(hwndRichEdit, WM_GETTEXT, 1024, (LPARAM) buffer);
     ok(buffer[0]=='a', 
@@ -1551,7 +1550,6 @@ static void test_EM_SETOPTIONS(void)
     /* READONLY - sending 'a' to the control */
     SendMessage(hwndRichEdit, WM_SETTEXT, 0, (LPARAM) text);
     SendMessage(hwndRichEdit, EM_SETOPTIONS, ECOOP_SET, ECO_READONLY);
-    SetFocus(hwndRichEdit);
     SendMessage(hwndRichEdit, WM_CHAR, 'a', 0x1E0001);
     SendMessage(hwndRichEdit, WM_GETTEXT, 1024, (LPARAM) buffer);
     ok(buffer[0]==text[0], 




More information about the wine-cvs mailing list