Commit 9d2da7fa authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

riched20/tests: Remove unnecessary SetFocus calls.

parent fdb2bc4b
...@@ -1541,7 +1541,6 @@ static void test_EM_SETOPTIONS(void) ...@@ -1541,7 +1541,6 @@ static void test_EM_SETOPTIONS(void)
SendMessage(hwndRichEdit, EM_SETOPTIONS, ECOOP_SET, 0); SendMessage(hwndRichEdit, EM_SETOPTIONS, ECOOP_SET, 0);
/* testing no readonly by sending 'a' to the control*/ /* testing no readonly by sending 'a' to the control*/
SetFocus(hwndRichEdit);
SendMessage(hwndRichEdit, WM_CHAR, 'a', 0x1E0001); SendMessage(hwndRichEdit, WM_CHAR, 'a', 0x1E0001);
SendMessage(hwndRichEdit, WM_GETTEXT, 1024, (LPARAM) buffer); SendMessage(hwndRichEdit, WM_GETTEXT, 1024, (LPARAM) buffer);
ok(buffer[0]=='a', ok(buffer[0]=='a',
...@@ -1551,7 +1550,6 @@ static void test_EM_SETOPTIONS(void) ...@@ -1551,7 +1550,6 @@ static void test_EM_SETOPTIONS(void)
/* READONLY - sending 'a' to the control */ /* READONLY - sending 'a' to the control */
SendMessage(hwndRichEdit, WM_SETTEXT, 0, (LPARAM) text); SendMessage(hwndRichEdit, WM_SETTEXT, 0, (LPARAM) text);
SendMessage(hwndRichEdit, EM_SETOPTIONS, ECOOP_SET, ECO_READONLY); SendMessage(hwndRichEdit, EM_SETOPTIONS, ECOOP_SET, ECO_READONLY);
SetFocus(hwndRichEdit);
SendMessage(hwndRichEdit, WM_CHAR, 'a', 0x1E0001); SendMessage(hwndRichEdit, WM_CHAR, 'a', 0x1E0001);
SendMessage(hwndRichEdit, WM_GETTEXT, 1024, (LPARAM) buffer); SendMessage(hwndRichEdit, WM_GETTEXT, 1024, (LPARAM) buffer);
ok(buffer[0]==text[0], ok(buffer[0]==text[0],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment