[PATCH 1/2] riched20: Implement ITextSelection::GetText. (try 3)
Jactry Zeng
jactry92 at gmail.com
Tue Jul 15 08:43:16 CDT 2014
2014-07-15 21:29 GMT+08:00 Huw Davies <huw at codeweavers.com>:
>
> Can you at least point to a test that shows this bug?
Do you mean tests about bug of S/GetSelection?
It seem is a known bug:
http://source.winehq.org/git/wine.git/blob/HEAD:/dlls/riched20/tests/editor.c#l4366
dlls/riched20/tests/editor.c:4352
struct exsetsel_s {
LONG min;
LONG max;
LRESULT expected_retval;
int expected_getsel_start;
int expected_getsel_end;
int _getsel_todo_wine;
};
const struct exsetsel_s exsetsel_tests[] = {
/* sanity tests */
{5, 10, 10, 5, 10, 0},
{15, 17, 17, 15, 17, 0},
/* test cpMax > strlen() */
{0, 100, 18, 0, 18, 1},
/* test cpMin == cpMax */
{5, 5, 5, 5, 5, 0},
/* test cpMin < 0 && cpMax >= 0 (bug 4462) */
{-1, 0, 5, 5, 5, 0},
{-1, 17, 5, 5, 5, 0},
{-1, 18, 5, 5, 5, 0},
/* test cpMin < 0 && cpMax < 0 */
{-1, -1, 17, 17, 17, 0},
{-4, -5, 17, 17, 17, 0},
/* test cMin >=0 && cpMax < 0 (bug 6814) */
{0, -1, 18, 0, 18, 1},
{17, -5, 18, 17, 18, 1},
{18, -3, 17, 17, 17, 0},
/* test if cpMin > cpMax */
{15, 19, 18, 15, 18, 1},
{19, 15, 18, 15, 18, 1}
};
--
Regards,
Jactry Zeng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20140715/4068a99c/attachment.html>
More information about the wine-devel
mailing list