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

This commit is contained in:
Vincent Povirk 2012-02-29 14:56:55 -06:00 committed by Alexandre Julliard
parent a58249cd5c
commit 7a9f6abd85
1 changed files with 10 additions and 0 deletions

View File

@ -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);