2 * PROJECT: ReactOS api tests
3 * LICENSE: GPL - See COPYING in the top level directory
4 * PURPOSE: Test for NtGdiArcInternal
10 START_TEST(NtGdiArcInternal
)
12 HDC hDC
= CreateDCW(L
"Display",NULL
,NULL
,NULL
);
14 SetLastError(ERROR_SUCCESS
);
15 TEST(NtGdiArcInternal(0, 0, 0, 0, 0, 0, 0, 0, 0, 0) == FALSE
);
16 TEST(GetLastError() == ERROR_INVALID_HANDLE
);
18 SetLastError(ERROR_SUCCESS
);
19 TEST(NtGdiArcInternal(0, hDC
, 0, 0, 0, 0, 0, 0, 0, 0) == TRUE
);
20 TEST(NtGdiArcInternal(1, hDC
, 0, 0, 0, 0, 0, 0, 0, 0) == TRUE
);
21 TEST(NtGdiArcInternal(2, hDC
, 0, 0, 0, 0, 0, 0, 0, 0) == TRUE
);
22 TEST(NtGdiArcInternal(3, hDC
, 0, 0, 0, 0, 0, 0, 0, 0) == TRUE
);
23 TEST(GetLastError() == ERROR_SUCCESS
);
25 SetLastError(ERROR_SUCCESS
);
26 TEST(NtGdiArcInternal(4, hDC
, 0, 0, 0, 0, 0, 0, 0, 0) == FALSE
);
27 TEST(GetLastError() == ERROR_INVALID_PARAMETER
);
29 SetLastError(ERROR_SUCCESS
);
30 TEST(NtGdiArcInternal(4, (HDC
)10, 0, 0, 0, 0, 0, 0, 0, 0) == FALSE
);
31 TEST(GetLastError() == ERROR_INVALID_HANDLE
);
33 SetLastError(ERROR_SUCCESS
);
34 TEST(NtGdiArcInternal(0, hDC
, 10, 10, 0, 0, 0, 0, 0, 0) == TRUE
);
35 TEST(NtGdiArcInternal(0, hDC
, 10, 10, -10, -10, 0, 0, 0, 0) == TRUE
);
36 TEST(NtGdiArcInternal(0, hDC
, 0, 0, 0, 0, 10, 0, -10, 0) == TRUE
);
38 // was passiert, wenn left > right ? einfach tauschen?