riched20/tests: Remove unnecessary SetFocus calls.
This commit is contained in:
parent
fdb2bc4be9
commit
9d2da7fa66
|
@ -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)
|
||||||
/* 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],
|
||||||
|
|
Loading…
Reference in New Issue