Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
c607ab96
Commit
c607ab96
authored
16 years ago
by
Austin Lund
Committed by
Alexandre Julliard
16 years ago
Browse files
Options
Downloads
Patches
Plain Diff
riched20/tests: Added ITextServices::TxSetText test.
parent
e90c8f53
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/riched20/tests/Makefile.in
+1
-1
1 addition, 1 deletion
dlls/riched20/tests/Makefile.in
dlls/riched20/tests/txtsrv.c
+26
-0
26 additions, 0 deletions
dlls/riched20/tests/txtsrv.c
with
27 additions
and
1 deletion
dlls/riched20/tests/Makefile.in
+
1
−
1
View file @
c607ab96
...
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
riched20.dll
IMPORTS
=
ole32 user32 gdi32 kernel32
IMPORTS
=
ole32
oleaut32
user32 gdi32 kernel32
CTESTS
=
\
editor.c
\
...
...
This diff is collapsed.
Click to expand it.
dlls/riched20/tests/txtsrv.c
+
26
−
0
View file @
c607ab96
...
...
@@ -31,6 +31,7 @@
#include
<initguid.h>
#include
<textserv.h>
#include
<wine/test.h>
#include
<oleauto.h>
static
HMODULE
hmoduleRichEdit
;
...
...
@@ -641,6 +642,30 @@ static void test_TxGetText(void)
CoTaskMemFree
(
dummyTextHost
);
}
static
void
test_TxSetText
(
void
)
{
HRESULT
hres
;
BSTR
rettext
;
WCHAR
settext
[]
=
{
'T'
,
'e'
,
's'
,
't'
,
0
};
if
(
!
init_texthost
())
return
;
hres
=
ITextServices_TxSetText
(
txtserv
,
settext
);
todo_wine
ok
(
hres
==
S_OK
,
"ITextServices_TxSetText failed
\n
"
);
hres
=
ITextServices_TxGetText
(
txtserv
,
&
rettext
);
todo_wine
ok
(
hres
==
S_OK
,
"ITextServices_TxGetText failed
\n
"
);
todo_wine
ok
(
SysStringLen
(
rettext
)
==
4
,
"String returned of wrong length
\n
"
);
todo_wine
ok
(
memcmp
(
rettext
,
settext
,
SysStringByteLen
(
rettext
))
==
0
,
"String returned differs
\n
"
);
IUnknown_Release
(
txtserv
);
CoTaskMemFree
(
dummyTextHost
);
}
START_TEST
(
txtsrv
)
{
setup_thiscall_wrappers
();
...
...
@@ -656,6 +681,7 @@ START_TEST( txtsrv )
CoTaskMemFree
(
dummyTextHost
);
test_TxGetText
();
test_TxSetText
();
}
if
(
wrapperCodeMem
)
VirtualFree
(
wrapperCodeMem
,
0
,
MEM_RELEASE
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment