Huw Davies : riched20/tests: Actually copy something to the clipboard.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Feb 29 10:59:12 CST 2016
Module: wine
Branch: master
Commit: 9a934a3198f72f2752b08d105cd20cb19edbd52a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9a934a3198f72f2752b08d105cd20cb19edbd52a
Author: Huw Davies <huw at codeweavers.com>
Date: Mon Feb 29 12:06:23 2016 +0000
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: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/riched20/tests/editor.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c
index e32d403..85f057e 100644
--- a/dlls/riched20/tests/editor.c
+++ b/dlls/riched20/tests/editor.c
@@ -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);
More information about the wine-cvs
mailing list