Commit Graph

259 Commits

Author SHA1 Message Date
Jactry Zeng bb5974987e riched20/tests: Add tests for WM_GETTEXTLENGTH.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-23 16:32:13 +01:00
Jactry Zeng 30049ba798 riched20/tests: Test EM_GETSELTEXT with multibyte character.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-23 16:32:13 +01:00
Jactry Zeng fb304e0e4e riched20/tests: Test EM_GETTEXTRANGE with multibyte character.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-23 16:32:13 +01:00
Jactry Zeng de0add976d riched20/tests: Add multibyte character tests for selection.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 19:50:29 +01:00
Jactry Zeng 99f0f6b91b riched20/tests: Test EM_LINELENGTH with multibyte character.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 19:50:28 +01:00
Jactry Zeng d5c587b1c2 riched20/tests: Add return tests for EM_SETTEXTEX.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-07 21:29:34 +09:00
Jactry Zeng f52ae04585 riched20/tests: Test EM_SETTEXT and EM_REPLACESEL with multibyte character.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-07 21:29:34 +09:00
Jactry Zeng 7365f557b6 riched20/tests: Test EM_REPLACESEL with rtf stream.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-30 23:16:51 +09:00
Jactry Zeng 6401ab45c0 riched20: Implement alignment styles support.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-06 21:59:07 +09:00
Jactry Zeng dc6b2853f5 riched20: Set pStream->written in ME_StreamOutFlush.
Superseded patch 115907.

ChangeLog:
- Add tests.

Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-06 19:22:43 +09:00
Jactry Zeng d62dd46516 riched20: Implement EM_SETFONTSIZE. 2015-08-27 21:43:46 +09:00
Alex Henrie af19e64017 riched20: Fix link notification conditions and add tests. 2015-06-18 17:11:05 +09:00
Nikolay Sivov bb82d669d1 riched20/tests: Remove explicit todo flag values from static test data. 2015-06-17 15:44:38 +09:00
Nikolay Sivov fd4affc0cb riched20/tests: Some more EM_SETSEL tests. 2015-06-17 15:44:36 +09:00
Huw Davies 17f273360a riched20: Append a final \par when writing the whole buffer. 2015-06-09 14:47:30 +09:00
Huw Davies ef072b1eb2 riched20/tests: Fix test on 64-bit win8. 2015-04-20 14:37:08 +09:00
Christoph von Wittich c0c36fba70 riched20: EM_SETSEL should not return 0. 2015-03-31 14:46:06 +09:00
Alexandre Julliard 488e3d70a6 riched20/tests: Print full flag values in traces. 2015-03-30 19:49:13 +09:00
Huw Davies 2a5886974d riched20: Don't resend a partial chunk to the edit stream callback.
It's basically used as a boolean to terminate the writing process
if it's set to zero.
2015-03-17 23:55:16 +09:00
Marc Bessières 85ca920d94 riched20/tests: Use SendMessageA with char buffer (Valgrind). 2014-12-03 21:34:33 +01:00
Michael Stefaniuc 5ce384e191 riched20/tests: Simplify the check for an empty string (PVS-Studio). 2014-11-11 14:22:12 +09:00
Jactry Zeng 68b9018d50 riched20: Fix ME_SetSelection when cpMax > strlen(). 2014-07-21 18:45:34 +02:00
Jactry Zeng 455eca6d22 riched20: Return nonzero value instead of zero when EM_SETREADONLY succeeds. 2014-07-04 19:30:25 +02:00
Alex Henrie 6b947701a7 riched20: Consider adjacent runs when computing EN_LINK range. 2014-06-17 10:36:53 +02:00
Huw Davies b89c7c8fc2 riched20: Don't skip the final carriage return in SFF_SELECTION mode. 2014-06-11 13:06:23 +02:00
Andrew Eikum 704d1695f3 riched20/tests: Allow conversions to non-English codepages. 2014-05-20 21:27:00 +02:00
Hans Leidekker db094db851 riched20: Don't return DLGC_HASSETSEL from WM_GETDLGCODE if the control style includes ES_SAVESEL. 2014-03-28 17:57:19 +01:00
Jactry Zeng 88214a5874 riched20: Add UTF8 support for EM_SETTEXTEX. 2014-01-27 16:59:15 +01:00
Frédéric Delanoy 57d7f74d34 Assorted spelling fixes. 2013-11-21 19:44:46 +01:00
Huw Davies 58e83ebdea riched20: Revert to the default paragraph style when all text is deleted. 2013-11-04 17:41:12 +01:00
André Hentschel 1431b1e9c4 riched20/tests: Fix editor tests compilation with __WINESRC__ defined. 2013-10-28 20:07:02 +01:00
Frédéric Delanoy c388cce8aa riched20/tests: Use BOOL type where appropriate. 2013-10-08 09:09:28 +02:00
Piotr Caban e660bf676c riched20: Set control content in WM_CREATE message. 2013-10-07 19:52:44 +02:00
Michael Stefaniuc 9463dba830 tests: Use the explicit LoadLibraryA function. 2013-10-02 11:02:21 +02:00
Andrew Eikum 360afb93b5 riched20: Continue interpreting data as UTF-8 after the first chunk boundary. 2013-10-02 11:01:33 +02:00
Jactry Zeng 5520dcab8a riched20/tests: Add UTF8 BOM tests for EM_SETTEXTEX. 2013-09-27 10:43:00 +02:00
Andrew Eikum 3f02c24163 riched20: EM_FINDTEXT implementation should match richedit character type. 2013-03-25 14:07:19 +01:00
Michael Stefaniuc 87cdc7341d riched20/tests: Remove a superfluous function pointer cast. 2012-11-30 19:12:16 +01:00
Qian Hong cb8c500ee6 riched20: Added support for UTF8 BOM stream. 2012-08-17 13:58:11 +02:00
Qian Hong 7839d134e9 riched20/tests: Fixed typo in test_EM_STREAMIN. 2012-08-16 13:46:20 +02:00
Qian Hong 01ebba0fc4 riched20/tests: Added UTF8 BOM test. 2012-08-16 13:07:02 +02:00
Michael Stefaniuc 8660d5e77f riched20/tests: Check the correct return value. 2012-05-25 13:45:01 +02:00
Michael Stefaniuc 306b3510a9 riched20/tests: Remove duplicated ok() call. 2012-05-17 10:18:15 +02:00
Michael Stefaniuc 25ed3b9572 riched20/tests: Don't cast NULL to an integer. 2012-04-16 12:07:11 +02:00
Jason Edmeades efbde389c7 richedit: v1.0 richedit uses CR and LF for enter. 2012-01-23 16:07:41 +01:00
Thomas Faber 3ac36cb50f riched20/tests: Test format rect adaption to window size and behavior with zero-sized windows. 2011-10-24 19:54:08 +02:00
Dylan Smith 9d2da7fa66 riched20/tests: Remove unnecessary SetFocus calls. 2011-09-26 12:19:43 +02:00
Dylan Smith fdb2bc4be9 riched20/tests: Avoid using flaky method of simulating typing. 2011-09-26 12:19:40 +02:00
Dylan Smith f61d417a34 richedit: Return number of chars inserted for EM_STREAMIN with SF_RTF. 2011-09-26 12:16:59 +02:00
Dylan Smith e060272de7 richedit: Return number of bytes read for EM_STREAMIN with SF_TEXT. 2011-09-26 12:16:56 +02:00