mirror of
https://github.com/reactos/reactos.git
synced 2024-10-29 19:13:58 +00:00
4b95e17c61
Introduce a "apitest.h" header gathering special things for apitests (SEH macros, wine/test.h inclusion, and so on...). svn path=/trunk/; revision=60313
27 lines
626 B
C
27 lines
626 B
C
/*
|
|
* PROJECT: ReactOS api tests
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
* PURPOSE: Test for GdiConvertPalette
|
|
* PROGRAMMERS: Timo Kreuzer
|
|
*/
|
|
|
|
#include <apitest.h>
|
|
|
|
#include <wingdi.h>
|
|
|
|
HPALETTE WINAPI GdiConvertPalette(HPALETTE);
|
|
|
|
void Test_GdiConvertPalette()
|
|
{
|
|
ok(GdiConvertPalette((HPALETTE)-1) == (HPALETTE)-1, "\n");
|
|
ok(GdiConvertPalette((HPALETTE)0) == (HPALETTE)0, "\n");
|
|
ok(GdiConvertPalette((HPALETTE)1) == (HPALETTE)1, "\n");
|
|
ok(GdiConvertPalette((HPALETTE)2) == (HPALETTE)2, "\n");
|
|
}
|
|
|
|
START_TEST(GdiConvertPalette)
|
|
{
|
|
Test_GdiConvertPalette();
|
|
}
|
|
|