Jeff Smith : gdiplus/tests: Add another GdipGetPathGradientCenterPoint test.
Alexandre Julliard
julliard at winehq.org
Thu Jan 23 15:48:50 CST 2020
Module: wine
Branch: master
Commit: 3a092fb616480bd10948405d50b923ae39bf10e0
URL: https://source.winehq.org/git/wine.git/?a=commit;h=3a092fb616480bd10948405d50b923ae39bf10e0
Author: Jeff Smith <whydoubt at gmail.com>
Date: Wed Jan 22 11:03:26 2020 -0600
gdiplus/tests: Add another GdipGetPathGradientCenterPoint test.
Signed-off-by: Jeff Smith <whydoubt at gmail.com>
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/gdiplus/tests/brush.c | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/dlls/gdiplus/tests/brush.c b/dlls/gdiplus/tests/brush.c
index bb645ffef9..c67ab74708 100644
--- a/dlls/gdiplus/tests/brush.c
+++ b/dlls/gdiplus/tests/brush.c
@@ -1299,6 +1299,7 @@ static void test_pathgradientcenterpoint(void)
{
static const GpPointF path_points[] = {{0,0}, {3,0}, {0,4}};
GpStatus status;
+ GpPath* path;
GpPathGradient *grad;
GpPointF point;
@@ -1346,6 +1347,26 @@ static void test_pathgradientcenterpoint(void)
status = GdipDeleteBrush((GpBrush*)grad);
expect(Ok, status);
+
+ status = GdipCreatePath(FillModeWinding, &path);
+ expect(Ok, status);
+
+ status = GdipAddPathEllipse(path, 0, 0, 100, 50);
+ expect(Ok, status);
+
+ status = GdipCreatePathGradientFromPath(path, &grad);
+ expect(Ok, status);
+
+ status = GdipGetPathGradientCenterPoint(grad, &point);
+ expect(Ok, status);
+ todo_wine expectf(700.0/13.0, point.X);
+ expectf(25.0, point.Y);
+
+ status = GdipDeletePath(path);
+ expect(Ok, status);
+
+ status = GdipDeleteBrush((GpBrush*)grad);
+ expect(Ok, status);
}
static void test_pathgradientpresetblend(void)
More information about the wine-cvs
mailing list