Module: wine Branch: master Commit: 7a9f6abd85b48396d76ab52aa714737f653d4821 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7a9f6abd85b48396d76ab52aa7...
Author: Vincent Povirk vincent@codeweavers.com Date: Wed Feb 29 14:56:55 2012 -0600
gdiplus: Test SetSurroundColors with fewer colors than points on the path.
---
dlls/gdiplus/tests/brush.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dlls/gdiplus/tests/brush.c b/dlls/gdiplus/tests/brush.c index 68b8881..44bb760 100644 --- a/dlls/gdiplus/tests/brush.c +++ b/dlls/gdiplus/tests/brush.c @@ -866,6 +866,16 @@ static void test_gradientsurroundcolorcount(void) todo_wine expect(0x0000ff00, color[1]); expect(0xdeadbeef, color[2]);
+ count = 1; + status = GdipSetPathGradientSurroundColorsWithCount(grad, color, &count); + todo_wine expect(Ok, status); + expect(1, count); + + count = 0; + status = GdipSetPathGradientSurroundColorsWithCount(grad, color, &count); + todo_wine expect(InvalidParameter, status); + expect(0, count); + GdipDeleteBrush((GpBrush*)grad);
status = GdipCreatePathGradient(getbounds_ptf, 3, WrapModeClamp, &grad);