Author: tkreuzer Date: Thu Oct 16 15:16:38 2008 New Revision: 36774
URL: http://svn.reactos.org/svn/reactos?rev=36774&view=rev Log: Tests for GetTextFace
Added: trunk/rostests/apitests/gdi32api/tests/GetTextFace.c (with props) Modified: trunk/rostests/apitests/gdi32api/testlist.c
Modified: trunk/rostests/apitests/gdi32api/testlist.c URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/gdi32api/testlist... ============================================================================== --- trunk/rostests/apitests/gdi32api/testlist.c [iso-8859-1] (original) +++ trunk/rostests/apitests/gdi32api/testlist.c [iso-8859-1] Thu Oct 16 15:16:38 2008 @@ -34,6 +34,7 @@ #include "tests/GetDIBits.c" #include "tests/GetObject.c" #include "tests/GetStockObject.c" +#include "tests/GetTextFace.c" #include "tests/SelectObject.c" #include "tests/SetDCPenColor.c" #include "tests/SetMapMode.c" @@ -74,6 +75,7 @@ { L"GetDIBits", Test_GetDIBits }, { L"GetObject", Test_GetObject }, { L"GetStockObject", Test_GetStockObject }, + { L"GetTextFace", Test_GetTextFace }, { L"SelectObject", Test_SelectObject }, { L"SetDCPenColor", Test_SetDCPenColor }, { L"SetMapMode", Test_SetMapMode },
Added: trunk/rostests/apitests/gdi32api/tests/GetTextFace.c URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/gdi32api/tests/Ge... ============================================================================== --- trunk/rostests/apitests/gdi32api/tests/GetTextFace.c (added) +++ trunk/rostests/apitests/gdi32api/tests/GetTextFace.c [iso-8859-1] Thu Oct 16 15:16:38 2008 @@ -1,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; +}
Propchange: trunk/rostests/apitests/gdi32api/tests/GetTextFace.c ------------------------------------------------------------------------------ svn:eol-style = native