Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c607ab96
Commit
c607ab96
authored
Jan 09, 2009
by
Austin Lund
Committed by
Alexandre Julliard
Jan 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: Added ITextServices::TxSetText test.
parent
e90c8f53
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletion
+27
-1
Makefile.in
dlls/riched20/tests/Makefile.in
+1
-1
txtsrv.c
dlls/riched20/tests/txtsrv.c
+26
-0
No files found.
dlls/riched20/tests/Makefile.in
View file @
c607ab96
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../../..
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../../..
SRCDIR
=
@srcdir@
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
riched20.dll
TESTDLL
=
riched20.dll
IMPORTS
=
ole32 user32 gdi32 kernel32
IMPORTS
=
ole32
oleaut32
user32 gdi32 kernel32
CTESTS
=
\
CTESTS
=
\
editor.c
\
editor.c
\
...
...
dlls/riched20/tests/txtsrv.c
View file @
c607ab96
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
#include <initguid.h>
#include <initguid.h>
#include <textserv.h>
#include <textserv.h>
#include <wine/test.h>
#include <wine/test.h>
#include <oleauto.h>
static
HMODULE
hmoduleRichEdit
;
static
HMODULE
hmoduleRichEdit
;
...
@@ -641,6 +642,30 @@ static void test_TxGetText(void)
...
@@ -641,6 +642,30 @@ static void test_TxGetText(void)
CoTaskMemFree
(
dummyTextHost
);
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
)
START_TEST
(
txtsrv
)
{
{
setup_thiscall_wrappers
();
setup_thiscall_wrappers
();
...
@@ -656,6 +681,7 @@ START_TEST( txtsrv )
...
@@ -656,6 +681,7 @@ START_TEST( txtsrv )
CoTaskMemFree
(
dummyTextHost
);
CoTaskMemFree
(
dummyTextHost
);
test_TxGetText
();
test_TxGetText
();
test_TxSetText
();
}
}
if
(
wrapperCodeMem
)
VirtualFree
(
wrapperCodeMem
,
0
,
MEM_RELEASE
);
if
(
wrapperCodeMem
)
VirtualFree
(
wrapperCodeMem
,
0
,
MEM_RELEASE
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment