mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 12:11:42 +00:00
update gdi32_test
- fix #line ... - add more tests svn path=/trunk/; revision=26620
This commit is contained in:
parent
85be5ff46c
commit
a2a4bb1e51
8 changed files with 94 additions and 19 deletions
|
@ -1,3 +1,5 @@
|
|||
#line 2 "ExtCreatePen.c"
|
||||
|
||||
#include "..\gditest.h"
|
||||
|
||||
BOOL
|
||||
|
@ -5,6 +7,7 @@ Test_ExtCreatePen(INT* passed, INT* failed)
|
|||
{
|
||||
HPEN hPen;
|
||||
LOGBRUSH logbrush;
|
||||
DWORD dwStyles[17] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17};
|
||||
|
||||
logbrush.lbStyle = BS_SOLID;
|
||||
logbrush.lbColor = RGB(1,2,3);
|
||||
|
@ -14,9 +17,16 @@ Test_ExtCreatePen(INT* passed, INT* failed)
|
|||
|
||||
/* Test if we have an EXTPEN */
|
||||
TEST(GDI_HANDLE_GET_TYPE(hPen) == GDI_OBJECT_TYPE_EXTPEN);
|
||||
|
||||
|
||||
DeleteObject(hPen);
|
||||
|
||||
/* test userstyles */
|
||||
hPen = ExtCreatePen(PS_GEOMETRIC | PS_USERSTYLE, 5, &logbrush, 17, (CONST DWORD*)&dwStyles);
|
||||
TEST(hPen == 0);
|
||||
hPen = ExtCreatePen(PS_GEOMETRIC | PS_USERSTYLE, 5, &logbrush, 16, (CONST DWORD*)&dwStyles);
|
||||
TEST(hPen != 0);
|
||||
|
||||
DeleteObject(hPen);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue