Commit 9a934a31 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

riched20/tests: Actually copy something to the clipboard.

Previously this test was relying on a quirk - pasting with an empty clipboard generated an undo event. Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent d0025484
......@@ -3281,11 +3281,12 @@ static void test_EM_SETUNDOLIMIT(void)
SendMessageA(hwndRichEdit, WM_SETTEXT, 0, (LPARAM)"x");
cr.cpMin = 0;
cr.cpMax = 1;
cr.cpMax = -1;
SendMessageA(hwndRichEdit, EM_EXSETSEL, 0, (LPARAM)&cr);
SendMessageA(hwndRichEdit, WM_COPY, 0, 0);
/*Load "x" into the clipboard. Paste is an easy, undo'able operation.
also, multiple pastes don't combine like WM_CHAR would */
SendMessageA(hwndRichEdit, EM_EXSETSEL, 0, (LPARAM)&cr);
/* first case - check the default */
SendMessageA(hwndRichEdit,EM_EMPTYUNDOBUFFER, 0,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