Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
92c440c6
Commit
92c440c6
authored
Jul 26, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added testfile for customlinecap + constr./destr. tests.
parent
548abf36
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
84 additions
and
0 deletions
+84
-0
Makefile.in
dlls/gdiplus/tests/Makefile.in
+1
-0
customlinecap.c
dlls/gdiplus/tests/customlinecap.c
+83
-0
No files found.
dlls/gdiplus/tests/Makefile.in
View file @
92c440c6
...
...
@@ -7,6 +7,7 @@ IMPORTS = gdiplus user32 gdi32 kernel32
CTESTS
=
\
brush.c
\
customlinecap.c
\
font.c
\
graphics.c
\
graphicspath.c
\
...
...
dlls/gdiplus/tests/customlinecap.c
0 → 100644
View file @
92c440c6
/*
* Unit test suite for customlinecap
*
* Copyright (C) 2008 Nikolay Sivov
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "windows.h"
#include "gdiplus.h"
#include "wine/test.h"
#define expect(expected, got) ok(got == expected, "Expected %.8x, got %.8x\n", expected, got)
static
void
test_constructor_destructor
(
void
)
{
GpCustomLineCap
*
custom
;
GpPath
*
path
,
*
path2
;
GpStatus
stat
;
stat
=
GdipCreatePath
(
FillModeAlternate
,
&
path
);
expect
(
Ok
,
stat
);
stat
=
GdipAddPathRectangle
(
path
,
5
.
0
,
5
.
0
,
10
.
0
,
10
.
0
);
expect
(
Ok
,
stat
);
stat
=
GdipCreatePath
(
FillModeAlternate
,
&
path2
);
expect
(
Ok
,
stat
);
stat
=
GdipAddPathRectangle
(
path2
,
5
.
0
,
5
.
0
,
10
.
0
,
10
.
0
);
expect
(
Ok
,
stat
);
/* NULL args */
stat
=
GdipCreateCustomLineCap
(
NULL
,
NULL
,
LineCapFlat
,
0
.
0
,
NULL
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipCreateCustomLineCap
(
path
,
NULL
,
LineCapFlat
,
0
.
0
,
NULL
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipCreateCustomLineCap
(
NULL
,
path
,
LineCapFlat
,
0
.
0
,
NULL
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipCreateCustomLineCap
(
NULL
,
NULL
,
LineCapFlat
,
0
.
0
,
&
custom
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipDeleteCustomLineCap
(
NULL
);
expect
(
InvalidParameter
,
stat
);
/* valid args */
stat
=
GdipCreateCustomLineCap
(
NULL
,
path2
,
LineCapFlat
,
0
.
0
,
&
custom
);
expect
(
Ok
,
stat
);
stat
=
GdipDeleteCustomLineCap
(
custom
);
expect
(
Ok
,
stat
);
/* it's strange but native returns NotImplemented on stroke == NULL */
stat
=
GdipCreateCustomLineCap
(
path
,
NULL
,
LineCapFlat
,
10
.
0
,
&
custom
);
todo_wine
expect
(
NotImplemented
,
stat
);
GdipDeletePath
(
path2
);
GdipDeletePath
(
path
);
}
START_TEST
(
customlinecap
)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
ULONG_PTR
gdiplusToken
;
gdiplusStartupInput
.
GdiplusVersion
=
1
;
gdiplusStartupInput
.
DebugEventCallback
=
NULL
;
gdiplusStartupInput
.
SuppressBackgroundThread
=
0
;
gdiplusStartupInput
.
SuppressExternalCodecs
=
0
;
GdiplusStartup
(
&
gdiplusToken
,
&
gdiplusStartupInput
,
NULL
);
test_constructor_destructor
();
GdiplusShutdown
(
gdiplusToken
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment