[ros-diffs] [greatlrd] 33681: implemeted test for GdiDeleteLocalDC, GdiReleaseLocalDC, GdiSetAttrs tested in xp/vista/reactos and works no fault report.

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Sun May 25 00:42:46 CEST 2008


Author: greatlrd
Date: Sat May 24 17:42:46 2008
New Revision: 33681

URL: http://svn.reactos.org/svn/reactos?rev=33681&view=rev
Log:
implemeted test for GdiDeleteLocalDC, GdiReleaseLocalDC, GdiSetAttrs
tested in xp/vista/reactos and works no fault report.

Added:
    trunk/rostests/apitests/gdi32api/tests/GdiDeleteLocalDC.c   (with props)
    trunk/rostests/apitests/gdi32api/tests/GdiReleaseLocalDC.c   (with props)
    trunk/rostests/apitests/gdi32api/tests/GdiSetAttrs.c   (with props)
Modified:
    trunk/rostests/apitests/gdi32api/gdi.h
    trunk/rostests/apitests/gdi32api/testlist.c

Modified: trunk/rostests/apitests/gdi32api/gdi.h
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/gdi32api/gdi.h?rev=33681&r1=33680&r2=33681&view=diff
==============================================================================
--- trunk/rostests/apitests/gdi32api/gdi.h [iso-8859-1] (original)
+++ trunk/rostests/apitests/gdi32api/gdi.h [iso-8859-1] Sat May 24 17:42:46 2008
@@ -208,6 +208,9 @@
 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);
+
+
+

Modified: trunk/rostests/apitests/gdi32api/testlist.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/gdi32api/testlist.c?rev=33681&r1=33680&r2=33681&view=diff
==============================================================================
--- trunk/rostests/apitests/gdi32api/testlist.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/gdi32api/testlist.c [iso-8859-1] Sat May 24 17:42:46 2008
@@ -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"
@@ -29,6 +32,7 @@
 #include "tests/SetDCPenColor.c"
 #include "tests/SetSysColors.c"
 #include "tests/SetWorldTransform.c"
+
 
 
 
@@ -55,8 +59,11 @@
 	{ 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 },

Added: trunk/rostests/apitests/gdi32api/tests/GdiDeleteLocalDC.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/gdi32api/tests/GdiDeleteLocalDC.c?rev=33681&view=auto
==============================================================================
--- trunk/rostests/apitests/gdi32api/tests/GdiDeleteLocalDC.c (added)
+++ trunk/rostests/apitests/gdi32api/tests/GdiDeleteLocalDC.c [iso-8859-1] Sat May 24 17:42:46 2008
@@ -1,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;
+}

Propchange: trunk/rostests/apitests/gdi32api/tests/GdiDeleteLocalDC.c
------------------------------------------------------------------------------
    svn:eol-style = native

Added: trunk/rostests/apitests/gdi32api/tests/GdiReleaseLocalDC.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/gdi32api/tests/GdiReleaseLocalDC.c?rev=33681&view=auto
==============================================================================
--- trunk/rostests/apitests/gdi32api/tests/GdiReleaseLocalDC.c (added)
+++ trunk/rostests/apitests/gdi32api/tests/GdiReleaseLocalDC.c [iso-8859-1] Sat May 24 17:42:46 2008
@@ -1,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;
+}

Propchange: trunk/rostests/apitests/gdi32api/tests/GdiReleaseLocalDC.c
------------------------------------------------------------------------------
    svn:eol-style = native

Added: trunk/rostests/apitests/gdi32api/tests/GdiSetAttrs.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/gdi32api/tests/GdiSetAttrs.c?rev=33681&view=auto
==============================================================================
--- trunk/rostests/apitests/gdi32api/tests/GdiSetAttrs.c (added)
+++ trunk/rostests/apitests/gdi32api/tests/GdiSetAttrs.c [iso-8859-1] Sat May 24 17:42:46 2008
@@ -1,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;
+}

Propchange: trunk/rostests/apitests/gdi32api/tests/GdiSetAttrs.c
------------------------------------------------------------------------------
    svn:eol-style = native



More information about the Ros-diffs mailing list