mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
TEST -> RTEST as these succeed on ros now
svn path=/trunk/; revision=33993
This commit is contained in:
parent
e49f53ea51
commit
aa36da89c9
1 changed files with 7 additions and 7 deletions
|
@ -10,26 +10,26 @@ Test_CreateCompatibleDC(PTESTINFO pti)
|
||||||
/* Test NULL DC handle */
|
/* Test NULL DC handle */
|
||||||
SetLastError(ERROR_SUCCESS);
|
SetLastError(ERROR_SUCCESS);
|
||||||
hDC = CreateCompatibleDC(NULL);
|
hDC = CreateCompatibleDC(NULL);
|
||||||
TEST(hDC != NULL);
|
RTEST(hDC != NULL);
|
||||||
TEST(GetLastError() == ERROR_SUCCESS);
|
RTEST(GetLastError() == ERROR_SUCCESS);
|
||||||
if(hDC) DeleteDC(hDC);
|
if(hDC) DeleteDC(hDC);
|
||||||
|
|
||||||
/* Test invalid DC handle */
|
/* Test invalid DC handle */
|
||||||
SetLastError(ERROR_SUCCESS);
|
SetLastError(ERROR_SUCCESS);
|
||||||
hDC = CreateCompatibleDC((HDC)0x123456);
|
hDC = CreateCompatibleDC((HDC)0x123456);
|
||||||
TEST(hDC == NULL);
|
RTEST(hDC == NULL);
|
||||||
TEST(GetLastError() == ERROR_SUCCESS);
|
RTEST(GetLastError() == ERROR_SUCCESS);
|
||||||
if(hDC) DeleteDC(hDC);
|
if(hDC) DeleteDC(hDC);
|
||||||
|
|
||||||
hDC = CreateCompatibleDC(hDCScreen);
|
hDC = CreateCompatibleDC(hDCScreen);
|
||||||
RTEST(hDC != NULL);
|
RTEST(hDC != NULL);
|
||||||
|
|
||||||
// Test if first selected pen is BLACK_PEN (? or same as screen DC's pen?)
|
// Test if first selected pen is BLACK_PEN (? or same as screen DC's pen?)
|
||||||
TEST(SelectObject(hDC, GetStockObject(DC_PEN)) == GetStockObject(BLACK_PEN));
|
RTEST(SelectObject(hDC, GetStockObject(DC_PEN)) == GetStockObject(BLACK_PEN));
|
||||||
TEST(SelectObject(hDC, GetStockObject(BLACK_PEN)) == GetStockObject(DC_PEN));
|
RTEST(SelectObject(hDC, GetStockObject(BLACK_PEN)) == GetStockObject(DC_PEN));
|
||||||
|
|
||||||
// Test for the starting Color == RGB(0,0,0)
|
// Test for the starting Color == RGB(0,0,0)
|
||||||
TEST(SetDCPenColor(hDC, RGB(1,2,3)) == RGB(0,0,0));
|
RTEST(SetDCPenColor(hDC, RGB(1,2,3)) == RGB(0,0,0));
|
||||||
|
|
||||||
// Check for reuse counter
|
// Check for reuse counter
|
||||||
hOldDC = hDC;
|
hOldDC = hDC;
|
||||||
|
|
Loading…
Reference in a new issue