[1/3] gdiplus: Test SetSurroundColors with fewer colors than points on the path.

Vincent Povirk madewokherd at gmail.com
Thu Mar 15 10:54:19 CDT 2012


-------------- next part --------------
From e3f7ff029751245ac3713c68ba46aa8fbe94c4d5 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Wed, 29 Feb 2012 14:56:55 -0600
Subject: [PATCH 1/3] 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);
-- 
1.7.9.1


More information about the wine-patches mailing list