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
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
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
Alexandre Julliard
95c1bd4da9
riched20/tests: Make some variables static.
2010-10-01 13:40:29 +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
Michael Stefaniuc
cf13e8a390
riched20: Avoid using long.
2010-05-17 12:42:33 +02: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
Michael Stefaniuc
3b45ababfb
riched20: Remove some explicit LPARAM/WPARAM casts.
2009-12-28 12:27:13 +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
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
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