Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
16436794
Commit
16436794
authored
Jun 03, 2009
by
Austin Lund
Committed by
Alexandre Julliard
Jun 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/test: Added a test for TxDraw.
parent
8c820434
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
txtsrv.c
dlls/riched20/tests/txtsrv.c
+26
-0
No files found.
dlls/riched20/tests/txtsrv.c
View file @
16436794
...
...
@@ -739,6 +739,31 @@ static void test_TxGetNaturalSize(void) {
CoTaskMemFree
(
dummyTextHost
);
}
static
void
test_TxDraw
(
void
)
{
HDC
tmphdc
=
GetDC
(
NULL
);
DWORD
dwAspect
=
DVASPECT_CONTENT
;
HDC
hicTargetDev
=
NULL
;
/* Means "default" device */
DVTARGETDEVICE
*
ptd
=
NULL
;
void
*
pvAspect
=
NULL
;
HRESULT
result
;
RECTL
client
=
{
0
,
0
,
100
,
100
};
if
(
!
init_texthost
())
return
;
todo_wine
{
result
=
ITextServices_TxDraw
(
txtserv
,
dwAspect
,
0
,
pvAspect
,
ptd
,
tmphdc
,
hicTargetDev
,
&
client
,
NULL
,
NULL
,
NULL
,
0
,
0
);
ok
(
result
==
S_OK
,
"TxDraw failed
\n
"
);
}
IUnknown_Release
(
txtserv
);
CoTaskMemFree
(
dummyTextHost
);
}
START_TEST
(
txtsrv
)
{
setup_thiscall_wrappers
();
...
...
@@ -756,6 +781,7 @@ START_TEST( txtsrv )
test_TxGetText
();
test_TxSetText
();
test_TxGetNaturalSize
();
test_TxDraw
();
}
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