mirror of
https://github.com/reactos/reactos.git
synced 2024-08-24 04:08:38 +00:00
Tests for GetTextFace
svn path=/trunk/; revision=36774
This commit is contained in:
parent
6e6e3d15c7
commit
2f5ea4625b
|
@ -34,6 +34,7 @@
|
||||||
#include "tests/GetDIBits.c"
|
#include "tests/GetDIBits.c"
|
||||||
#include "tests/GetObject.c"
|
#include "tests/GetObject.c"
|
||||||
#include "tests/GetStockObject.c"
|
#include "tests/GetStockObject.c"
|
||||||
|
#include "tests/GetTextFace.c"
|
||||||
#include "tests/SelectObject.c"
|
#include "tests/SelectObject.c"
|
||||||
#include "tests/SetDCPenColor.c"
|
#include "tests/SetDCPenColor.c"
|
||||||
#include "tests/SetMapMode.c"
|
#include "tests/SetMapMode.c"
|
||||||
|
@ -74,6 +75,7 @@ TESTENTRY TestList[] =
|
||||||
{ L"GetDIBits", Test_GetDIBits },
|
{ L"GetDIBits", Test_GetDIBits },
|
||||||
{ L"GetObject", Test_GetObject },
|
{ L"GetObject", Test_GetObject },
|
||||||
{ L"GetStockObject", Test_GetStockObject },
|
{ L"GetStockObject", Test_GetStockObject },
|
||||||
|
{ L"GetTextFace", Test_GetTextFace },
|
||||||
{ L"SelectObject", Test_SelectObject },
|
{ L"SelectObject", Test_SelectObject },
|
||||||
{ L"SetDCPenColor", Test_SetDCPenColor },
|
{ L"SetDCPenColor", Test_SetDCPenColor },
|
||||||
{ L"SetMapMode", Test_SetMapMode },
|
{ L"SetMapMode", Test_SetMapMode },
|
||||||
|
|
25
rostests/apitests/gdi32api/tests/GetTextFace.c
Normal file
25
rostests/apitests/gdi32api/tests/GetTextFace.c
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
|
||||||
|
INT
|
||||||
|
Test_GetTextFace(PTESTINFO pti)
|
||||||
|
{
|
||||||
|
HDC hDC;
|
||||||
|
INT ret;
|
||||||
|
CHAR Buffer[20];
|
||||||
|
|
||||||
|
hDC = GetDC(NULL);
|
||||||
|
ASSERT(hDC);
|
||||||
|
|
||||||
|
ret = GetTextFaceA(hDC, 0, NULL);
|
||||||
|
TEST(ret != 0);
|
||||||
|
|
||||||
|
ret = GetTextFaceA(hDC, 20, Buffer);
|
||||||
|
TEST(ret != 0);
|
||||||
|
|
||||||
|
ret = GetTextFaceA(hDC, 0, Buffer);
|
||||||
|
TEST(ret == 0);
|
||||||
|
|
||||||
|
ret = GetTextFaceA(hDC, 20, NULL);
|
||||||
|
TEST(ret != 0);
|
||||||
|
|
||||||
|
return APISTATUS_NORMAL;
|
||||||
|
}
|
Loading…
Reference in a new issue