mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 09:50:43 +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:
parent
287182ff5f
commit
73e46408e9
5 changed files with 37 additions and 0 deletions
|
@ -208,6 +208,9 @@ HPALETTE WINAPI GdiConvertPalette(HPALETTE hpal);
|
||||||
HRGN WINAPI GdiConvertRegion(HRGN hregion);
|
HRGN WINAPI GdiConvertRegion(HRGN hregion);
|
||||||
HBRUSH WINAPI GdiGetLocalBrush(HBRUSH hbr);
|
HBRUSH WINAPI GdiGetLocalBrush(HBRUSH hbr);
|
||||||
HDC WINAPI GdiGetLocalDC(HDC hdc);
|
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/GdiConvertFont.c"
|
||||||
#include "tests/GdiConvertPalette.c"
|
#include "tests/GdiConvertPalette.c"
|
||||||
#include "tests/GdiConvertRegion.c"
|
#include "tests/GdiConvertRegion.c"
|
||||||
|
#include "tests/GdiDeleteLocalDC.c"
|
||||||
#include "tests/GdiGetLocalBrush.c"
|
#include "tests/GdiGetLocalBrush.c"
|
||||||
#include "tests/GdiGetLocalDC.c"
|
#include "tests/GdiGetLocalDC.c"
|
||||||
|
#include "tests/GdiReleaseLocalDC.c"
|
||||||
|
#include "tests/GdiSetAttrs.c"
|
||||||
#include "tests/GetClipRgn.c"
|
#include "tests/GetClipRgn.c"
|
||||||
#include "tests/GetCurrentObject.c"
|
#include "tests/GetCurrentObject.c"
|
||||||
#include "tests/GetDIBits.c"
|
#include "tests/GetDIBits.c"
|
||||||
|
@ -38,6 +41,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* The List of tests */
|
/* The List of tests */
|
||||||
TESTENTRY TestList[] =
|
TESTENTRY TestList[] =
|
||||||
{
|
{
|
||||||
|
@ -55,8 +59,11 @@ TESTENTRY TestList[] =
|
||||||
{ L"GdiConvertFont", Test_GdiConvertFont },
|
{ L"GdiConvertFont", Test_GdiConvertFont },
|
||||||
{ L"GdiConvertPalette", Test_GdiConvertPalette },
|
{ L"GdiConvertPalette", Test_GdiConvertPalette },
|
||||||
{ L"GdiConvertRegion", Test_GdiConvertRegion },
|
{ L"GdiConvertRegion", Test_GdiConvertRegion },
|
||||||
|
{ L"GdiDeleteLocalDC", Test_GdiDeleteLocalDC },
|
||||||
{ L"GdiGetLocalBrush", Test_GdiGetLocalBrush },
|
{ L"GdiGetLocalBrush", Test_GdiGetLocalBrush },
|
||||||
{ L"GdiGetLocalDC", Test_GdiGetLocalDC },
|
{ L"GdiGetLocalDC", Test_GdiGetLocalDC },
|
||||||
|
{ L"GdiReleaseLocalDC", Test_GdiReleaseLocalDC },
|
||||||
|
{ L"GdiSetAttrs", Test_GdiSetAttrs },
|
||||||
{ L"GetClipRgn", Test_GetClipRgn },
|
{ L"GetClipRgn", Test_GetClipRgn },
|
||||||
{ L"GetCurrentObject", Test_GetCurrentObject },
|
{ L"GetCurrentObject", Test_GetCurrentObject },
|
||||||
{ L"GetDIBits", Test_GetDIBits },
|
{ L"GetDIBits", Test_GetDIBits },
|
||||||
|
|
9
rostests/apitests/gdi32api/tests/GdiDeleteLocalDC.c
Normal file
9
rostests/apitests/gdi32api/tests/GdiDeleteLocalDC.c
Normal file
|
@ -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;
|
||||||
|
}
|
9
rostests/apitests/gdi32api/tests/GdiReleaseLocalDC.c
Normal file
9
rostests/apitests/gdi32api/tests/GdiReleaseLocalDC.c
Normal file
|
@ -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;
|
||||||
|
}
|
9
rostests/apitests/gdi32api/tests/GdiSetAttrs.c
Normal file
9
rostests/apitests/gdi32api/tests/GdiSetAttrs.c
Normal file
|
@ -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;
|
||||||
|
}
|
Loading…
Reference in a new issue