mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[GDI32_APITEST]
Add simple tests for RealizePalette. CORE-8350 #comment Tests show that the patch is not correct. svn path=/trunk/; revision=66158
This commit is contained in:
@@ -53,6 +53,7 @@ list(APPEND SOURCE
|
||||
OffsetClipRgn.c
|
||||
PatBlt.c
|
||||
Rectangle.c
|
||||
RealizePalette.c
|
||||
SelectObject.c
|
||||
SetBrushOrgEx.c
|
||||
SetDCPenColor.c
|
||||
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
@@ -54,6 +54,7 @@ extern void func_MaskBlt(void);
|
||||
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 @@ const struct test winetest_testlist[] =
|
||||
{ "OffsetClipRgn", func_OffsetClipRgn },
|
||||
{ "PatBlt", func_PatBlt },
|
||||
{ "Rectangle", func_Rectangle },
|
||||
{ "RealizePalette", func_RealizePalette },
|
||||
{ "SelectObject", func_SelectObject },
|
||||
{ "SetBrushOrgEx", func_SetBrushOrgEx },
|
||||
{ "SetDCPenColor", func_SetDCPenColor },
|
||||
|
||||
Reference in New Issue
Block a user