mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 04:13:32 +00:00
implemeted test for GdiDeleteLocalDC, GdiReleaseLocalDC, GdiSetAttrs
tested in xp/vista/reactos and works no fault report. svn path=/trunk/; revision=33681
This commit is contained in:
@@ -208,6 +208,9 @@ HPALETTE WINAPI GdiConvertPalette(HPALETTE hpal);
|
||||
HRGN WINAPI GdiConvertRegion(HRGN hregion);
|
||||
HBRUSH WINAPI GdiGetLocalBrush(HBRUSH hbr);
|
||||
HDC WINAPI GdiGetLocalDC(HDC hdc);
|
||||
BOOL WINAPI GdiDeleteLocalDC(HDC hdc);
|
||||
BOOL WINAPI GdiReleaseLocalDC(HDC hdc);
|
||||
BOOL WINAPI GdiSetAttrs(HDC hdc);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -18,8 +18,11 @@
|
||||
#include "tests/GdiConvertFont.c"
|
||||
#include "tests/GdiConvertPalette.c"
|
||||
#include "tests/GdiConvertRegion.c"
|
||||
#include "tests/GdiDeleteLocalDC.c"
|
||||
#include "tests/GdiGetLocalBrush.c"
|
||||
#include "tests/GdiGetLocalDC.c"
|
||||
#include "tests/GdiReleaseLocalDC.c"
|
||||
#include "tests/GdiSetAttrs.c"
|
||||
#include "tests/GetClipRgn.c"
|
||||
#include "tests/GetCurrentObject.c"
|
||||
#include "tests/GetDIBits.c"
|
||||
@@ -38,6 +41,7 @@
|
||||
|
||||
|
||||
|
||||
|
||||
/* The List of tests */
|
||||
TESTENTRY TestList[] =
|
||||
{
|
||||
@@ -55,8 +59,11 @@ TESTENTRY TestList[] =
|
||||
{ L"GdiConvertFont", Test_GdiConvertFont },
|
||||
{ L"GdiConvertPalette", Test_GdiConvertPalette },
|
||||
{ L"GdiConvertRegion", Test_GdiConvertRegion },
|
||||
{ L"GdiDeleteLocalDC", Test_GdiDeleteLocalDC },
|
||||
{ L"GdiGetLocalBrush", Test_GdiGetLocalBrush },
|
||||
{ L"GdiGetLocalDC", Test_GdiGetLocalDC },
|
||||
{ L"GdiReleaseLocalDC", Test_GdiReleaseLocalDC },
|
||||
{ L"GdiSetAttrs", Test_GdiSetAttrs },
|
||||
{ L"GetClipRgn", Test_GetClipRgn },
|
||||
{ L"GetCurrentObject", Test_GetCurrentObject },
|
||||
{ L"GetDIBits", Test_GetDIBits },
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
INT
|
||||
Test_GdiDeleteLocalDC(PTESTINFO pti)
|
||||
{
|
||||
RTEST(GdiDeleteLocalDC((HDC)-1) == TRUE);
|
||||
RTEST(GdiDeleteLocalDC((HDC)0) == TRUE);
|
||||
RTEST(GdiDeleteLocalDC((HDC)1) == TRUE);
|
||||
RTEST(GdiDeleteLocalDC((HDC)2) == TRUE);
|
||||
return APISTATUS_NORMAL;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
INT
|
||||
Test_GdiReleaseLocalDC(PTESTINFO pti)
|
||||
{
|
||||
RTEST(GdiReleaseLocalDC((HDC)-1) == TRUE);
|
||||
RTEST(GdiReleaseLocalDC((HDC)0) == TRUE);
|
||||
RTEST(GdiReleaseLocalDC((HDC)1) == TRUE);
|
||||
RTEST(GdiReleaseLocalDC((HDC)2) == TRUE);
|
||||
return APISTATUS_NORMAL;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
INT
|
||||
Test_GdiSetAttrs(PTESTINFO pti)
|
||||
{
|
||||
RTEST(GdiSetAttrs((HDC)-1) == TRUE);
|
||||
RTEST(GdiSetAttrs((HDC)0) == TRUE);
|
||||
RTEST(GdiSetAttrs((HDC)1) == TRUE);
|
||||
RTEST(GdiSetAttrs((HDC)2) == TRUE);
|
||||
return APISTATUS_NORMAL;
|
||||
}
|
||||
Reference in New Issue
Block a user