mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 12:14:32 +00:00
[APITESTS][WIN32KNT_APITEST] Improve NtGdiCreateCompatibleDC testcase (#1281)
Use ok, ok_int and ok_ptr macros instead of obsolete TEST macros.
This commit is contained in:
parent
0e70731358
commit
e32d5a8b76
1 changed files with 5 additions and 6 deletions
|
@ -14,21 +14,20 @@ START_TEST(NtGdiCreateCompatibleDC)
|
|||
|
||||
/* Test if aa NULL DC is accepted */
|
||||
hDC = NtGdiCreateCompatibleDC(NULL);
|
||||
TEST(hDC != NULL);
|
||||
ok(hDC != NULL, "hDC was NULL.\n");
|
||||
|
||||
/* We select a nwe palette. Note: SelectObject doesn't work with palettes! */
|
||||
hObj = SelectPalette(hDC, GetStockObject(DEFAULT_PALETTE), 0);
|
||||
/* The old palette should be GetStockObject(DEFAULT_PALETTE) */
|
||||
TEST(hObj == GetStockObject(DEFAULT_PALETTE));
|
||||
ok_ptr(hObj, GetStockObject(DEFAULT_PALETTE));
|
||||
|
||||
/* The default bitmap should be GetStockObject(21) */
|
||||
hObj = SelectObject(hDC, GetStockObject(21));
|
||||
TEST(hObj == GetStockObject(21));
|
||||
ok_ptr(hObj, GetStockObject(21));
|
||||
|
||||
/* The default pen should be GetStockObject(BLACK_PEN) */
|
||||
hObj = SelectObject(hDC, GetStockObject(WHITE_PEN));
|
||||
TEST(hObj == GetStockObject(BLACK_PEN));
|
||||
ok_ptr(hObj, GetStockObject(BLACK_PEN));
|
||||
|
||||
TEST(NtGdiDeleteObjectApp(hDC) != 0);
|
||||
ok(NtGdiDeleteObjectApp(hDC) != 0, "NtGdiDeleteObjectApp(hDC) was zero.\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue