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
Dylan Smith
20d6bc8ac7
richedit: Implemented ITextServices TxGetText and TxSetText.
2009-01-21 11:55:36 +01:00
Paul Vriens
bd607b64fd
riched20/tests: Fix a test failure on Win9x.
2009-01-20 12:23:20 +01:00
Austin Lund
80e71e63f2
riched20/tests: Added ITextServices::TxGetNaturalSize test.
2009-01-19 14:36:06 +01:00
Dylan Smith
d29a301ccd
richedit: Prevent sending Ctrl-C to console and ending tests.
2009-01-19 12:46:41 +01:00
Dylan Smith
b4babc16bb
richedit: EM_SETTEXTEX detects ascii richtext with Unicode codepage.
2009-01-19 12:46:41 +01:00
Dylan Smith
164778452c
richedit: Added test for detecting ascii rtf with Unicode codepage.
2009-01-19 12:46:41 +01:00
Dylan Smith
89f88a49a4
richedit: Store an internal copy of the window style flags.
2009-01-16 12:35:28 +01:00
Dylan Smith
9a902f358b
richedit: Added tests for initial options.
...
Using the WS_VSCROLL style causes the ES_AUTOVSCROLL option to be set,
and using the WS_HSCROLL style causes the ES_AUTOHSCROLL flag to be
set (except with richedit v1.0).
2009-01-16 12:35:17 +01:00
Dylan Smith
e6fedf879c
richedit: Implemented the horizontal scrollbar.
2009-01-15 14:13:38 +01:00
Dylan Smith
b81144b350
richedit: Correct limitations on values for setting zoom ratio.
2009-01-14 14:22:43 +01:00
Dylan Smith
fcabbbf30f
richedit: Zoom in and out with mouse wheel with control held.
2009-01-14 14:22:37 +01:00