Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
7fd6ccd1
Commit
7fd6ccd1
authored
Feb 20, 2012
by
Vincent Povirk
Committed by
Alexandre Julliard
Mar 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add tests for path gradient center point functions.
parent
1515a4b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
0 deletions
+54
-0
brush.c
dlls/gdiplus/tests/brush.c
+54
-0
No files found.
dlls/gdiplus/tests/brush.c
View file @
7fd6ccd1
...
@@ -852,6 +852,59 @@ static void test_pathgradientpath(void)
...
@@ -852,6 +852,59 @@ static void test_pathgradientpath(void)
expect
(
Ok
,
status
);
expect
(
Ok
,
status
);
}
}
static
void
test_pathgradientcenterpoint
(
void
)
{
static
const
GpPointF
path_points
[]
=
{{
0
,
0
},
{
3
,
0
},
{
0
,
4
}};
GpStatus
status
;
GpPathGradient
*
grad
;
GpPointF
point
;
status
=
GdipCreatePathGradient
(
path_points
+
1
,
2
,
WrapModeClamp
,
&
grad
);
expect
(
Ok
,
status
);
status
=
GdipGetPathGradientCenterPoint
(
NULL
,
&
point
);
expect
(
InvalidParameter
,
status
);
status
=
GdipGetPathGradientCenterPoint
(
grad
,
NULL
);
expect
(
InvalidParameter
,
status
);
status
=
GdipGetPathGradientCenterPoint
(
grad
,
&
point
);
expect
(
Ok
,
status
);
expectf
(
1
.
5
,
point
.
X
);
expectf
(
2
.
0
,
point
.
Y
);
status
=
GdipSetPathGradientCenterPoint
(
NULL
,
&
point
);
expect
(
InvalidParameter
,
status
);
status
=
GdipSetPathGradientCenterPoint
(
grad
,
NULL
);
expect
(
InvalidParameter
,
status
);
point
.
X
=
10
.
0
;
point
.
Y
=
15
.
0
;
status
=
GdipSetPathGradientCenterPoint
(
grad
,
&
point
);
expect
(
Ok
,
status
);
point
.
X
=
point
.
Y
=
-
1
;
status
=
GdipGetPathGradientCenterPoint
(
grad
,
&
point
);
expect
(
Ok
,
status
);
expectf
(
10
.
0
,
point
.
X
);
expectf
(
15
.
0
,
point
.
Y
);
status
=
GdipDeleteBrush
((
GpBrush
*
)
grad
);
expect
(
Ok
,
status
);
status
=
GdipCreatePathGradient
(
path_points
,
3
,
WrapModeClamp
,
&
grad
);
expect
(
Ok
,
status
);
status
=
GdipGetPathGradientCenterPoint
(
grad
,
&
point
);
expect
(
Ok
,
status
);
todo_wine
expectf
(
1
.
0
,
point
.
X
);
todo_wine
expectf
(
4
.
0
/
3
.
0
,
point
.
Y
);
status
=
GdipDeleteBrush
((
GpBrush
*
)
grad
);
expect
(
Ok
,
status
);
}
START_TEST
(
brush
)
START_TEST
(
brush
)
{
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
struct
GdiplusStartupInput
gdiplusStartupInput
;
...
@@ -877,6 +930,7 @@ START_TEST(brush)
...
@@ -877,6 +930,7 @@ START_TEST(brush)
test_linelinearblend
();
test_linelinearblend
();
test_gradientsurroundcolorcount
();
test_gradientsurroundcolorcount
();
test_pathgradientpath
();
test_pathgradientpath
();
test_pathgradientcenterpoint
();
GdiplusShutdown
(
gdiplusToken
);
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