Add basic tests for BeginPath andd SetMapMode

svn path=/trunk/; revision=36691
This commit is contained in:
Timo Kreuzer 2008-10-08 10:58:41 +00:00
parent 049bf94d41
commit f5cbabe20c
3 changed files with 62 additions and 8 deletions

View file

@ -0,0 +1,24 @@
INT
Test_BeginPath(PTESTINFO pti)
{
HDC hDC;
BOOL ret;
SetLastError(0);
ret = BeginPath(0);
TEST(ret == 0);
TEST(GetLastError() == ERROR_INVALID_HANDLE);
hDC = CreateCompatibleDC(NULL);
SetLastError(0);
ret = BeginPath(hDC);
TEST(ret == 1);
TEST(GetLastError() == 0);
DeleteDC(hDC);
return APISTATUS_NORMAL;
}