Commit Graph

445 Commits

Author SHA1 Message Date
Nikolay Sivov 9c6bcec509 riched20: Implement GetStoryLength(). 2015-06-08 15:47:48 +09:00
Nikolay Sivov 17a50f39b2 riched20/tests: Fix a BSTR leak (Valgrind). 2015-06-04 15:55:49 +09:00
Nikolay Sivov 2a2446abdb riched20: Return 0x0 size for NULL objects. 2015-06-03 19:29:49 +09:00
Nikolay Sivov a50e0d71a4 riched20/tests: Don't use global vars for host/textservices. 2015-06-02 20:53:43 +09:00
Nikolay Sivov 41687841bc riched20: Properly implement GetClientSite(). 2015-06-01 14:52:28 +09:00
Nikolay Sivov 383dbeedd7 riched20/tests: Small test for GetClientSite(). 2015-06-01 14:52:22 +09:00
Nikolay Sivov b2e13bc6e7 riched20: Implement GetText() for regular range. 2015-06-01 14:52:17 +09:00
Nikolay Sivov dd8287e9e8 riched20/tests: Test more return values and released cases. 2015-05-29 15:00:44 +09:00
Nikolay Sivov 054eecb2bf riched20: Implement SetFont(). 2015-05-29 15:00:38 +09:00
Nikolay Sivov d178e7ba68 riched20: Added GetStoryType(). 2015-05-29 15:00:32 +09:00
Nikolay Sivov b4959154ca riched20: Switch font unit is not allowed. 2015-05-29 15:00:27 +09:00
Nikolay Sivov eecb757248 riched20: Convert from twips to points when tomUsePoints is used. 2015-05-29 15:00:22 +09:00
Nikolay Sivov 6a335ca5da riched20: A bit more tests for GetChar(), improve tracing. 2015-05-28 14:21:07 +09:00
Nikolay Sivov cb095a82a2 riched20: Implement Select(). 2015-05-28 14:21:06 +09:00
Nikolay Sivov 6ccfde327a riched20: Implement IsEqual() for ranges. 2015-05-28 14:21:04 +09:00
Nikolay Sivov cebee9bd71 riched20: Implement InRange(). 2015-05-28 14:21:02 +09:00
Nikolay Sivov c1ce95dc96 riched20: Implement GetPara() for selection range. 2015-05-28 14:21:00 +09:00
Nikolay Sivov d27234617c riched20: Implement SetText for regular range. 2015-05-27 14:31:40 +09:00
Nikolay Sivov 64faf03cf3 riched20: Initial support for changing font properties. 2015-05-26 18:45:35 +09:00
Nikolay Sivov 1c0cf0efb3 riched20: Implement tomTrackParms/tomCacheParms. 2015-05-26 18:45:34 +09:00
Nikolay Sivov 0cf3c2f3a1 riched20: Support ITextFont instances detached from a range. 2015-05-26 18:45:34 +09:00
Nikolay Sivov c5a029f82e riched20/tests: Initial tests for font duplication behavior. 2015-05-25 21:43:18 +09:00
Nikolay Sivov 95074af8a8 riched20/tests: Basic test for Delete(). 2015-05-25 21:43:18 +09:00
Nikolay Sivov b43a0e1175 riched20/tests: Some tests for GetText(). 2015-05-25 21:43:18 +09:00
Nikolay Sivov f4438f1ee5 riched20: Implement Start/End properties for ranges. 2015-05-25 21:43:17 +09:00
Nikolay Sivov 81fc69d7e6 riched20: Added IDispatch support. 2015-05-25 21:43:17 +09:00
Huw Davies 008ceb662d riched20/tests: Fix test on 64-bit. 2015-05-22 18:04:25 +09:00
Nikolay Sivov fd806a65a5 riched20/tests: Added tests for ITextFont getters on detached font. 2015-05-21 19:04:00 +09:00
Nikolay Sivov 6fcb092f0f riched20/tests: Test against proper LCID. 2015-05-21 19:03:50 +09:00
Nikolay Sivov e6e16eb632 riched20: Implement GetName() for ITextFont. 2015-05-21 19:03:46 +09:00
Nikolay Sivov fa8c384b3b riched20: Implement GetFont() for selection range. 2015-05-20 18:35:44 +09:00
Nikolay Sivov 72ef367992 riched20: Implement GetLanguageID(). 2015-05-20 18:35:43 +09:00
Nikolay Sivov c48e0519ac riched20: Implement GetSize(). 2015-05-20 18:35:32 +09:00
Nikolay Sivov a96b04737c riched20: Implement GetBold()/GetItalic(). 2015-05-19 19:24:45 +09:00
Nikolay Sivov c8362ec3b8 riched20: Added tom typelib.
I had to duplicate idl unfortunately, because typelib in riched20 is not
compatible with interfaces from tom.idl - method names are different,
while vtables are identical.
2015-05-18 15:26:04 +09:00
Nikolay Sivov f0959dc175 riched20: Implement SetEnd(). 2015-05-18 15:26:03 +09:00
Nikolay Sivov 3a0670ed7e riched20: Implement SetStart(). 2015-05-18 15:26:03 +09:00
Nikolay Sivov 6d19ac5cb3 riched20: Added stub ITextPara. 2015-05-18 15:26:02 +09:00
Nikolay Sivov aba1e680f2 riched20: Added ITextFont stub. 2015-05-18 15:26:02 +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
Jactry Zeng 6c425a169a riched20: Implement IOleInPlaceSite interface. 2015-03-19 22:42:31 +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
Jactry Zeng f1d22c0ebd riched20: Implement IOleWindow::GetWindow. 2015-03-17 00:19:47 +09:00
Jactry Zeng bbb9755896 riched20: Implement IOleWindow interface. 2015-03-17 00:19:46 +09:00
Jactry Zeng 879261dd8b riched20: Add tests for IRichEditOle::QueryInterface. 2015-03-17 00:19:44 +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 a9491ec5d9 riched20: Add IID_IRichEditOle and IID_ITextDocument support for ITextServices::QueryInterface. 2014-10-30 12:02:52 +09:00
Jactry Zeng 40456439e6 riched20: Implement ITextSelection::Collapse. 2014-09-17 11:46:17 +02:00
Jactry Zeng 07154f7fee riched20: Implement ITextRange::Collapse. 2014-09-17 11:46:02 +02:00
Jactry Zeng da40589e71 riched20: Implement ITextRange::GetDuplicate. 2014-09-17 11:45:58 +02:00
Jactry Zeng 52fee14932 riched20: Implement ITextSelection::GetStart and ITextSelection::GetEnd. 2014-09-16 19:25:34 +02:00
Jactry Zeng b56c96a619 riched20: Implement ITextRange::GetStart and ITextRange::GetEnd. 2014-09-16 19:25:16 +02:00
Jactry Zeng 329252f88b riched20: Implement ITextSelection::GetChar. 2014-09-15 18:25:31 +02:00
Jactry Zeng 0aa433438d riched20: Implement ITextRange::GetChar. 2014-09-15 18:25:28 +02:00
Jactry Zeng b10b39185d riched20: Stub for ITextRange interface and implement ITextDocument::Range. 2014-09-12 17:02:50 +02:00
Alexandre Julliard 35dd553038 riched20/tests: Fix test on 64-bit. 2014-07-22 20:45:46 +02:00
Jactry Zeng 1f6073c861 riched20: Implement ITextSelection::GetText. 2014-07-21 18:45:38 +02: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
Jactry Zeng 6ea4da4038 riched20: Don't create too many IRichEditOle interface for a RichEdit. 2014-07-01 12:53:47 +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 c5bd5236b9 riched20: Return E_INVALIDARG for empty ppSel in ITextDocument::GetSelection. 2014-03-26 19:20:25 +01:00
Jactry Zeng fa2c509243 riched20/tests: Fix a SysAllocString leak. 2014-03-13 20:22:14 +01:00
Jactry Zeng 0f23b967a4 include: Fix a typo in ITextServices method named TxGetCurTarget. 2014-03-12 19:06:31 +01:00
Jactry Zeng 1841426616 riched20/tests: Add tests to check the content open by ITextDocument_fnOpen. 2014-02-12 19:15:17 +01:00
Frédéric Delanoy e877ec4c5a riched20/tests: Use common wine_dbgstr_guid implementation from test.h. 2014-01-30 12:42:55 +01:00
Jactry Zeng 88214a5874 riched20: Add UTF8 support for EM_SETTEXTEX. 2014-01-27 16:59:15 +01:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +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 86a30afeb5 riched20/tests: Fix txtsrv tests compilation with __WINESRC__ defined. 2013-10-28 20:07:21 +01:00
André Hentschel 27fb62621a riched20/tests: Fix richole tests compilation with __WINESRC__ defined. 2013-10-28 20:07:10 +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 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +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
Jactry Zeng a8d87afe1c riched20/tests: Add tests of ITextDocument_Open. 2013-09-05 13:25:34 +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
Nikolay Sivov 28821a924c riched20/tests: Use proper method macros. 2012-08-24 11:32:59 +02: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
Michael Stefaniuc 39f416cd9d riched20/tests: Add COM aggregation tests for CreateTextServices(). 2012-03-28 11:39:12 +02:00
Michael Stefaniuc 67389533bc riched20/tests: Get the CreateTextServices() pointer only once. 2012-03-28 11:39:04 +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
Francois Gouget 3de330db54 tests: Remove unneeded assert.h includes. 2011-09-27 10:59:56 +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
Francois Gouget c992ca277d Assorted spelling fixes. 2011-08-24 19:07:46 +02:00
Dan Kegel 28b2d03a8c riched20/tests: Fix test_EM_FINDWORDBREAK comments. 2011-08-01 18:26:25 +02:00
Dan Kegel dafd6fecd1 riched20/tests: Add test for WB_ISDELIMITER. 2011-07-20 19:23:05 +02:00
Dylan Smith 82da77c0a6 richedit: Fix incorrect GUID values for ITextHost and ITextHost2. 2011-07-05 14:44:43 +02:00
Dylan Smith 819e1a899a riched20/tests: Test the text services IIDs. 2011-07-05 14:44:33 +02:00
Marcus Meissner 2b53df89cb riched20: Fixed some lParams with keycodes (Coverity). 2011-05-06 14:23:46 +02:00
Francois Gouget cc2cd5a525 riched20/tests: Add a '\n' to an ok() call. 2011-03-07 11:09:27 +01:00
Austin English c17df92e5d riched20/tests: Remove win9x hacks. 2011-02-28 13:13:33 +01:00
Austin English 75e4e607c6 riched20/tests: Make sure return value is used (LLVM/Clang). 2011-02-09 09:25:58 -06:00
Greg Geldorp 997a681300 riched20/tests: Fix editor tests. 2011-01-24 14:43:27 +01:00
Greg Geldorp bee48efdce riched20/tests: Skip some tests on non-English platforms. 2011-01-19 16:54:02 +01:00
André Hentschel cea221caa0 riched20/tests: Don't test function directly when reporting GetLastError(). 2010-12-30 15:00:58 +01:00
Michael Stefaniuc 0acf4a297b riched20/tests: Use an iface instead of a vtbl pointer in ITextHostTestImpl. 2010-12-09 12:28:41 +01:00
Austin Lund b20e75f5e9 riched20/tests: Cleaned up ITextServices::TxGetNaturalSize test and fixed test failures. 2010-10-13 17:45:23 +02:00
Austin Lund d08fc66732 riched20/tests: Plug a few memory leaks and make failure messages more meaningful. 2010-10-06 20:46:49 +02:00
Alexandre Julliard 95c1bd4da9 riched20/tests: Make some variables static. 2010-10-01 13:40:29 +02:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Dylan Smith 75eef41881 richedit: Return correct values when EM_SETTEXTMODE fails.
The checks for the text length and invalid parameters needed to be swapped,
and the code could be easily simplified.
2010-07-30 11:36:01 +02:00
Alexandre Julliard b86d515ed6 dlls: Remove explicit imports of kernel32 and ntdll. 2010-07-21 17:38:36 +02:00
Michael Stefaniuc cf13e8a390 riched20: Avoid using long. 2010-05-17 12:42:33 +02:00
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
David Hedberg 534398a57e richedit: GTL_PRECISE to GETTEXTLENGTHEX implies GTL_NUMBYTES.
If GTL_PRECISE is passed without specifying either GTL_NUMCHARS or
GTL_NUMBYTES, behave as if GTL_NUMBYTES was passed.
2010-03-01 11:33:01 +01:00
Dylan Smith fe9933ae4d richedit: Added some extra tests for EM_FORMATRANGE.
The existing tests were not properly testing the return value for the case
where all the text fits in the page rect, so this patch adds a couple of
simple tests for this case.
2010-02-22 12:03:09 +01:00
Alexandre Julliard 6164ce2d82 makefiles: Use the standard C_SRCS variable as the list of test files.
This enables it to be auto-updated by make_makefiles.
2010-02-22 10:47:11 +01:00
Michael Stefaniuc 3b45ababfb riched20: Remove some explicit LPARAM/WPARAM casts. 2009-12-28 12:27:13 +01:00
Nikolay Sivov c6ff530ad6 riched20/tests: Don't leak string in test. 2009-11-30 12:56:58 +01:00
Sergey Khodych 12a417de8a riched20: Implement handling of WM_KEYDOWN VK_TAB in the dialog mode. 2009-10-13 12:38:58 +02:00
Sergey Khodych a50ca4ace0 riched20: Implement handling of WM_KEYDOWN VK_ESCAPE in the dialog mode. 2009-10-13 12:38:54 +02:00
Sergey Khodych 8fb119ba8b riched20: Implement handling of WM_KEYDOWN VK_RETURN in the dialog mode. 2009-10-13 12:38:49 +02:00
Dylan Smith 3fe20bdc7e richedit: Handle to parent window is cached.
The parent window for the richedit control on creation is the one that
receives notify messages, even after the parent has been changed using
SetParent.
2009-09-30 17:41:06 +02:00
Dylan Smith 992381b36e richedit: Added test to show that handle to parent is cached. 2009-09-30 17:40:59 +02:00
Dylan Smith 2da0d8e933 richedit: Use ME_Cursor instead of offsets for ME_SetCharFormat.
The test that succeeded from this change was as a result of allowing the
end of the character format change be specified using NULL as the rest
of the text.  Before, the end paragraph run at the end of the text was
not being set for this case, when all the text was supposed to have its
character format changed.
2009-08-12 17:35:50 +02:00
Dylan Smith e7fd0b46b0 richedit: Add more tests for WM_SETTEXT RTF support. 2009-07-13 10:48:05 +02:00
Austin Lund 1643679476 riched20/test: Added a test for TxDraw. 2009-06-03 16:04:49 +02:00
Francois Gouget 8a46d0eaf5 Assorted spelling fixes. 2009-05-04 12:53:29 +02:00
Massimo Del Fedele 078989d463 richedit20: Test for fonttbl streamout. 2009-04-27 13:24:27 +02:00
Michael Stefaniuc b747284797 riched20/tests: Use better types than long. 2009-04-20 14:12:29 +02:00
Paul Vriens 30041c283a riched20/tests: Remove the todo_wine logic where appropriate. 2009-04-03 17:06:41 +02:00
Paul Vriens e96fb0fa50 riched20/tests: Fix and extend EM_FORMATRANGE tests. 2009-03-24 12:58:26 +01:00
Dylan Smith caca486029 richedit: Add bounds checks for EM_GETTEXTRANGE with tests.
Wine was not doing bounds checks for EM_GETTEXTRANGE, which was causing
a crash in Bug 17822.  The added tests would cause a crash without the
added bounds checks in the richedit code.

The bounds checks I put in HandleMessage, since ME_GetTextRange is also
called for ME_GETSELTEXT which should not have bounds checks, since it
uses the selection range.

When the ME_GETTEXTRANGE message returns 0, no text is copied, not even
the NULL terminating charter.  This differs from EM_GETSELTEXT which
will copy the NULL terminating character when no text is selected.  This
behaviour is consistent with native richedit controls.
2009-03-23 13:26:28 +01:00
Francois Gouget 96848a0605 Remove spaces before '\n's. 2009-03-09 12:05:58 +01:00
Dylan Smith 1a3551b630 richedit: Use width from EM_SETTARGETDEVICE for wrapping.
The width for EM_SETTARGETDEVICE is used by some applications to set the
wrapping width to a certain distance in twips.  This can be used even
though the target device is ignored.
2009-02-02 15:21:44 +01:00
Michael Stefaniuc d1a7e41b71 riched20: Remove superfluous pointer casts. 2009-01-30 11:45:23 +01:00
Alasdair Sinclair 0e543a715c riched20/tests: Fix missing void in empty parameter list. 2009-01-30 11:43:31 +01:00
Dylan Smith 9b7825f6f6 richedit: Added test for scroll position after EM_SETTEXTEX. 2009-01-22 15:28:22 +01:00
Francois Gouget 30ad4c9eb0 riched20/tests: Make test_TxGetNaturalSize() static. 2009-01-22 12:04:04 +01:00