TEST -> RTEST as these succeed on ros now

svn path=/trunk/; revision=33993
This commit is contained in:
Timo Kreuzer 2008-06-16 13:27:39 +00:00
parent e49f53ea51
commit aa36da89c9

View file

@ -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;