riched20/test: Added a test for TxDraw.
This commit is contained in:
parent
8c820434a4
commit
1643679476
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue