Author: tkreuzer
Date: Wed Feb 4 09:02:25 2015
New Revision: 66158
URL:
http://svn.reactos.org/svn/reactos?rev=66158&view=rev
Log:
[GDI32_APITEST]
Add simple tests for RealizePalette.
CORE-8350 #comment Tests show that the patch is not correct.
Added:
trunk/rostests/apitests/gdi32/RealizePalette.c (with props)
Modified:
trunk/rostests/apitests/gdi32/CMakeLists.txt
trunk/rostests/apitests/gdi32/testlist.c
Modified: trunk/rostests/apitests/gdi32/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/gdi32/CMakeLists…
==============================================================================
--- trunk/rostests/apitests/gdi32/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/rostests/apitests/gdi32/CMakeLists.txt [iso-8859-1] Wed Feb 4 09:02:25 2015
@@ -53,6 +53,7 @@
OffsetClipRgn.c
PatBlt.c
Rectangle.c
+ RealizePalette.c
SelectObject.c
SetBrushOrgEx.c
SetDCPenColor.c
Added: trunk/rostests/apitests/gdi32/RealizePalette.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/gdi32/RealizePal…
==============================================================================
--- trunk/rostests/apitests/gdi32/RealizePalette.c (added)
+++ trunk/rostests/apitests/gdi32/RealizePalette.c [iso-8859-1] Wed Feb 4 09:02:25 2015
@@ -0,0 +1,22 @@
+/*
+ * PROJECT: ReactOS api tests
+ * LICENSE: GPL - See COPYING in the top level directory
+ * PURPOSE: Test for RealizePalette
+ * PROGRAMMERS: Timo Kreuzer
+ */
+
+#include <stdio.h>
+#include <wine/test.h>
+#include <windows.h>
+#include "init.h"
+
+START_TEST(RealizePalette)
+{
+ InitStuff();
+ ok_int(RealizePalette(NULL), GDI_ERROR);
+ ok_int(RealizePalette((HDC)0xdeadc0de), GDI_ERROR);
+ ok_int(RealizePalette((HDC)0x00010001), 0);
+ ok_int(RealizePalette(ghdcDIB32), 0);
+
+}
+
Propchange: trunk/rostests/apitests/gdi32/RealizePalette.c
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/rostests/apitests/gdi32/testlist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/gdi32/testlist.c…
==============================================================================
--- trunk/rostests/apitests/gdi32/testlist.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/gdi32/testlist.c [iso-8859-1] Wed Feb 4 09:02:25 2015
@@ -54,6 +54,7 @@
extern void func_OffsetClipRgn(void);
extern void func_PatBlt(void);
extern void func_Rectangle(void);
+extern void func_RealizePalette(void);
extern void func_SelectObject(void);
extern void func_SetBrushOrgEx(void);
extern void func_SetDCPenColor(void);
@@ -118,6 +119,7 @@
{ "OffsetClipRgn", func_OffsetClipRgn },
{ "PatBlt", func_PatBlt },
{ "Rectangle", func_Rectangle },
+ { "RealizePalette", func_RealizePalette },
{ "SelectObject", func_SelectObject },
{ "SetBrushOrgEx", func_SetBrushOrgEx },
{ "SetDCPenColor", func_SetDCPenColor },