mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 07:36:21 +00:00
[APITESTS][WIN32KNT_APITEST] Improve NtGdiEngCreatePalette testcase (#1284)
Use ok and ok_long and ok_ptr macros instead of obsolete TEST macros.
This commit is contained in:
parent
3bc47ebe41
commit
d4505e4a7f
1 changed files with 5 additions and 6 deletions
|
@ -15,12 +15,11 @@ START_TEST(NtGdiEngCreatePalette)
|
|||
|
||||
hPal = NtGdiEngCreatePalette(PAL_RGB, 3, Colors, 0xff000000, 0x00ff0000, 0x0000ff00);
|
||||
|
||||
TEST(hPal != 0);
|
||||
TEST(GDI_HANDLE_GET_TYPE(hPal) == GDI_OBJECT_TYPE_PALETTE);
|
||||
ok(hPal != NULL, "hPal was NULL.\n");
|
||||
ok_int((int)GDI_HANDLE_GET_TYPE(hPal), (int)GDI_OBJECT_TYPE_PALETTE);
|
||||
pEntry = &GdiHandleTable[GDI_HANDLE_GET_INDEX(hPal)];
|
||||
TEST(pEntry->einfo.pobj != NULL);
|
||||
TEST(pEntry->ObjectOwner.ulObj == GetCurrentProcessId());
|
||||
TEST(pEntry->pUser == 0);
|
||||
ok(pEntry->einfo.pobj != NULL, "pEntry->einfo.pobj was NULL.\n");
|
||||
ok_long(pEntry->ObjectOwner.ulObj, GetCurrentProcessId());
|
||||
ok_ptr(pEntry->pUser, NULL);
|
||||
//TEST(pEntry->Type == (((UINT)hPal >> 16) | GDI_OBJECT_TYPE_PALETTE));
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue