mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +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 */
|
||||
SetLastError(ERROR_SUCCESS);
|
||||
hDC = CreateCompatibleDC(NULL);
|
||||
TEST(hDC != NULL);
|
||||
TEST(GetLastError() == ERROR_SUCCESS);
|
||||
RTEST(hDC != NULL);
|
||||
RTEST(GetLastError() == ERROR_SUCCESS);
|
||||
if(hDC) DeleteDC(hDC);
|
||||
|
||||
/* Test invalid DC handle */
|
||||
SetLastError(ERROR_SUCCESS);
|
||||
hDC = CreateCompatibleDC((HDC)0x123456);
|
||||
TEST(hDC == NULL);
|
||||
TEST(GetLastError() == ERROR_SUCCESS);
|
||||
RTEST(hDC == NULL);
|
||||
RTEST(GetLastError() == ERROR_SUCCESS);
|
||||
if(hDC) DeleteDC(hDC);
|
||||
|
||||
hDC = CreateCompatibleDC(hDCScreen);
|
||||
RTEST(hDC != NULL);
|
||||
|
||||
// Test if first selected pen is BLACK_PEN (? or same as screen DC's pen?)
|
||||
TEST(SelectObject(hDC, GetStockObject(DC_PEN)) == GetStockObject(BLACK_PEN));
|
||||
TEST(SelectObject(hDC, GetStockObject(BLACK_PEN)) == GetStockObject(DC_PEN));
|
||||
RTEST(SelectObject(hDC, GetStockObject(DC_PEN)) == GetStockObject(BLACK_PEN));
|
||||
RTEST(SelectObject(hDC, GetStockObject(BLACK_PEN)) == GetStockObject(DC_PEN));
|
||||
|
||||
// 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
|
||||
hOldDC = hDC;
|
||||
|
|
Loading…
Reference in a new issue