Austin Lund : riched20/test: Added a test for TxDraw.
Alexandre Julliard
julliard at winehq.org
Wed Jun 3 09:31:17 CDT 2009
Module: wine
Branch: master
Commit: 1643679476c88953c6c506c152c7d25ba2219716
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1643679476c88953c6c506c152c7d25ba2219716
Author: Austin Lund <austin.lund at gmail.com>
Date: Wed Jun 3 16:02:56 2009 +1000
riched20/test: Added a test for TxDraw.
---
dlls/riched20/tests/txtsrv.c | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/dlls/riched20/tests/txtsrv.c b/dlls/riched20/tests/txtsrv.c
index e4d6ae4..da28945 100644
--- a/dlls/riched20/tests/txtsrv.c
+++ b/dlls/riched20/tests/txtsrv.c
@@ -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);
}
More information about the wine-cvs
mailing list