riched20/tests: Remove unnecessary SetFocus calls.
Dylan Smith
dylan.ah.smith at gmail.com
Mon Sep 26 01:29:33 CDT 2011
I tried the tests with SetFocus(NULL), and they still passed. I am removing
these calls because focus stealing is a nuissance while running the tests
if it can be avoided.
---
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],
--
1.7.4.1
More information about the wine-patches
mailing list