Module: wine Branch: master Commit: 82fa1048b5cc7d9c6a2a289403f25adbdd8158c7 URL: https://gitlab.winehq.org/wine/wine/-/commit/82fa1048b5cc7d9c6a2a289403f25ad...
Author: Eric Pouech eric.pouech@gmail.com Date: Mon Feb 13 13:02:52 2023 +0100
riched20/tests: Add tests when pasting in plain text mode.
Signed-off-by: Eric Pouech eric.pouech@gmail.com
---
dlls/riched20/tests/editor.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c index 07af9ab5dbd..14a7558ee17 100644 --- a/dlls/riched20/tests/editor.c +++ b/dlls/riched20/tests/editor.c @@ -1409,6 +1409,7 @@ static void test_EM_SETTEXTMODE(void) { HWND hwndRichEdit = new_richedit(NULL); CHARFORMAT2A cf2, cf2test; + unsigned int len; CHARRANGE cr; int rc = 0;
@@ -1480,6 +1481,10 @@ static void test_EM_SETTEXTMODE(void) /*Paste the italicized "wine" into the control*/ SendMessageA(hwndRichEdit, WM_PASTE, 0, 0);
+ len = SendMessageA(hwndRichEdit, WM_GETTEXTLENGTH, 0, 0); + todo_wine + ok(len == 8 /*winewine*/, "Unexpected text length %u\n", len); + /*Select a character from the first "wine" string*/ cr.cpMin = 2; cr.cpMax = 3;