mirror of
https://github.com/reactos/reactos.git
synced 2025-08-09 07:53:00 +00:00
Add basic tests for BeginPath andd SetMapMode
svn path=/trunk/; revision=36691
This commit is contained in:
parent
049bf94d41
commit
f5cbabe20c
3 changed files with 62 additions and 8 deletions
24
rostests/apitests/gdi32api/tests/BeginPath.c
Normal file
24
rostests/apitests/gdi32api/tests/BeginPath.c
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue