Vincent Povirk : gdiplus: Test SetSurroundColors with fewer colors than points on the path.

Alexandre Julliard julliard at winehq.org
Thu Mar 15 15:35:20 CDT 2012


Module: wine
Branch: master
Commit: 7a9f6abd85b48396d76ab52aa714737f653d4821
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7a9f6abd85b48396d76ab52aa714737f653d4821

Author: Vincent Povirk <vincent at 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);




More information about the wine-cvs mailing list