On 7/18/2013 20:28, Caibin Chen wrote:
Add tests for start and end point, setting and getting text.
dlls/riched20/tests/Makefile.in | 3 +- dlls/riched20/tests/txtrng.c | 343 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 345 insertions(+), 1 deletion(-) create mode 100644 dlls/riched20/tests/txtrng.c
You could just use existing file, richole.c fits I think.
ITextRange will be used in both richole.c and txtsrv.c. I'm planning to add more tests in it. I think it makes more sense to have one test file for each interface, which improves the readability of tests.
2013/7/18 Nikolay Sivov bunglehead@gmail.com:
On 7/18/2013 20:28, Caibin Chen wrote:
Add tests for start and end point, setting and getting text.
dlls/riched20/tests/Makefile.in | 3 +- dlls/riched20/tests/txtrng.c | 343 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 345 insertions(+), 1 deletion(-) create mode 100644 dlls/riched20/tests/txtrng.c
You could just use existing file, richole.c fits I think.
On 7/18/2013 23:36, Caibin Chen wrote:
ITextRange will be used in both richole.c and txtsrv.c. I'm planning to add more tests in it. I think it makes more sense to have one test file for each interface, which improves the readability of tests.
That's usually done for implementation, but not for the tests. What does it mean it will be used in both files by the way?
2013/7/18 Nikolay Sivov bunglehead@gmail.com:
On 7/18/2013 20:28, Caibin Chen wrote:
Add tests for start and end point, setting and getting text.
dlls/riched20/tests/Makefile.in | 3 +- dlls/riched20/tests/txtrng.c | 343 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 345 insertions(+), 1 deletion(-) create mode 100644 dlls/riched20/tests/txtrng.c
You could just use existing file, richole.c fits I think.
The ITextRange objects are returned by ITextDocument_Range() method. Both IRichEditOle and ITextService supports ITextDocument interface. Currently we don't have ITextDocument support in ITextService. my another patch[1] is to add ITextDocument interface support in ITextService.
[1]. http://www.winehq.org/pipermail/wine-patches/2013-July/125258.html
2013/7/18 Nikolay Sivov bunglehead@gmail.com:
On 7/18/2013 23:36, Caibin Chen wrote:
ITextRange will be used in both richole.c and txtsrv.c. I'm planning to add more tests in it. I think it makes more sense to have one test file for each interface, which improves the readability of tests.
That's usually done for implementation, but not for the tests. What does it mean it will be used in both files by the way?
2013/7/18 Nikolay Sivov bunglehead@gmail.com:
On 7/18/2013 20:28, Caibin Chen wrote:
Add tests for start and end point, setting and getting text.
dlls/riched20/tests/Makefile.in | 3 +- dlls/riched20/tests/txtrng.c | 343 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 345 insertions(+), 1 deletion(-) create mode 100644 dlls/riched20/tests/txtrng.c
You could just use existing file, richole.c fits I think.
On 7/19/2013 00:04, Caibin Chen wrote:
The ITextRange objects are returned by ITextDocument_Range() method. Both IRichEditOle and ITextService supports ITextDocument interface. Currently we don't have ITextDocument support in ITextService. my another patch[1] is to add ITextDocument interface support in ITextService.
I see, then maybe it's better to merge two existing files first.
[1]. http://www.winehq.org/pipermail/wine-patches/2013-July/125258.html
2013/7/18 Nikolay Sivov bunglehead@gmail.com:
On 7/18/2013 23:36, Caibin Chen wrote:
ITextRange will be used in both richole.c and txtsrv.c. I'm planning to add more tests in it. I think it makes more sense to have one test file for each interface, which improves the readability of tests.
That's usually done for implementation, but not for the tests. What does it mean it will be used in both files by the way?
2013/7/18 Nikolay Sivov bunglehead@gmail.com:
On 7/18/2013 20:28, Caibin Chen wrote:
Add tests for start and end point, setting and getting text.
dlls/riched20/tests/Makefile.in | 3 +- dlls/riched20/tests/txtrng.c | 343
++++++++++++++++++++++++++++++++++++++++ 2 files changed, 345 insertions(+), 1 deletion(-) create mode 100644 dlls/riched20/tests/txtrng.c
You could just use existing file, richole.c fits I think.
What files do you mean to merge? txtsrv.c and richole.c or test/richole.c and test/richole.c?
2013/7/18 Nikolay Sivov bunglehead@gmail.com:
On 7/19/2013 00:04, Caibin Chen wrote:
The ITextRange objects are returned by ITextDocument_Range() method. Both IRichEditOle and ITextService supports ITextDocument interface. Currently we don't have ITextDocument support in ITextService. my another patch[1] is to add ITextDocument interface support in ITextService.
I see, then maybe it's better to merge two existing files first.
[1]. http://www.winehq.org/pipermail/wine-patches/2013-July/125258.html
2013/7/18 Nikolay Sivov bunglehead@gmail.com:
On 7/18/2013 23:36, Caibin Chen wrote:
ITextRange will be used in both richole.c and txtsrv.c. I'm planning to add more tests in it. I think it makes more sense to have one test file for each interface, which improves the readability of tests.
That's usually done for implementation, but not for the tests. What does it mean it will be used in both files by the way?
2013/7/18 Nikolay Sivov bunglehead@gmail.com:
On 7/18/2013 20:28, Caibin Chen wrote:
Add tests for start and end point, setting and getting text.
dlls/riched20/tests/Makefile.in | 3 +- dlls/riched20/tests/txtrng.c | 343
++++++++++++++++++++++++++++++++++++++++ 2 files changed, 345 insertions(+), 1 deletion(-) create mode 100644 dlls/riched20/tests/txtrng.c
You could just use existing file, richole.c fits I think.
On 7/19/2013 00:15, Caibin Chen wrote:
What files do you mean to merge? txtsrv.c and richole.c or test/richole.c and test/richole.c?
Tests of course. Another solution is to create ITextService instance in richole.c and run range tests or whatever tests you need on it. It's a couple of lines to add.
2013/7/18 Nikolay Sivov bunglehead@gmail.com:
On 7/19/2013 00:04, Caibin Chen wrote:
The ITextRange objects are returned by ITextDocument_Range() method. Both IRichEditOle and ITextService supports ITextDocument interface. Currently we don't have ITextDocument support in ITextService. my another patch[1] is to add ITextDocument interface support in ITextService.
I see, then maybe it's better to merge two existing files first.
[1]. http://www.winehq.org/pipermail/wine-patches/2013-July/125258.html
2013/7/18 Nikolay Sivov bunglehead@gmail.com:
On 7/18/2013 23:36, Caibin Chen wrote:
ITextRange will be used in both richole.c and txtsrv.c. I'm planning to add more tests in it. I think it makes more sense to have one test file for each interface, which improves the readability of tests.
That's usually done for implementation, but not for the tests. What does it mean it will be used in both files by the way?
2013/7/18 Nikolay Sivov bunglehead@gmail.com:
On 7/18/2013 20:28, Caibin Chen wrote: > Add tests for start and end point, setting and getting text. > --- > dlls/riched20/tests/Makefile.in | 3 +- > dlls/riched20/tests/txtrng.c | 343 > ++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 345 insertions(+), 1 deletion(-) > create mode 100644 dlls/riched20/tests/txtrng.c You could just use existing file, richole.c fits I think.
Can you explain what benefits can we get from merging these two tests? To me it only make them hard to read.
2013/7/18 Nikolay Sivov bunglehead@gmail.com:
On 7/19/2013 00:15, Caibin Chen wrote:
What files do you mean to merge? txtsrv.c and richole.c or test/richole.c and test/richole.c?
Tests of course. Another solution is to create ITextService instance in richole.c and run range tests or whatever tests you need on it. It's a couple of lines to add.
2013/7/18 Nikolay Sivov bunglehead@gmail.com:
On 7/19/2013 00:04, Caibin Chen wrote:
The ITextRange objects are returned by ITextDocument_Range() method. Both IRichEditOle and ITextService supports ITextDocument interface. Currently we don't have ITextDocument support in ITextService. my another patch[1] is to add ITextDocument interface support in ITextService.
I see, then maybe it's better to merge two existing files first.
[1]. http://www.winehq.org/pipermail/wine-patches/2013-July/125258.html
2013/7/18 Nikolay Sivov bunglehead@gmail.com:
On 7/18/2013 23:36, Caibin Chen wrote:
ITextRange will be used in both richole.c and txtsrv.c. I'm planning to add more tests in it. I think it makes more sense to have one test file for each interface, which improves the readability of tests.
That's usually done for implementation, but not for the tests. What does it mean it will be used in both files by the way?
2013/7/18 Nikolay Sivov bunglehead@gmail.com: > > On 7/18/2013 20:28, Caibin Chen wrote: >> >> Add tests for start and end point, setting and getting text. >> --- >> dlls/riched20/tests/Makefile.in | 3 +- >> dlls/riched20/tests/txtrng.c | 343 >> ++++++++++++++++++++++++++++++++++++++++ >> 2 files changed, 345 insertions(+), 1 deletion(-) >> create mode 100644 dlls/riched20/tests/txtrng.c > > You could just use existing file, richole.c fits I think. >