Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b54d38a5
Commit
b54d38a5
authored
Feb 22, 2012
by
Vincent Povirk
Committed by
Alexandre Julliard
Mar 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add test for GdipGetPathGradientSurroundColorsWithCount.
parent
5d64f16b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
7 deletions
+75
-7
brush.c
dlls/gdiplus/tests/brush.c
+75
-7
No files found.
dlls/gdiplus/tests/brush.c
View file @
b54d38a5
...
...
@@ -773,22 +773,59 @@ static void test_gradientsurroundcolorcount(void)
{
GpStatus
status
;
GpPathGradient
*
grad
;
ARGB
*
color
;
INT
count
=
3
;
ARGB
color
[
3
]
;
INT
count
;
status
=
GdipCreatePathGradient
(
blendcount_ptf
,
2
,
WrapModeClamp
,
&
grad
);
expect
(
Ok
,
status
);
color
=
GdipAlloc
(
sizeof
(
ARGB
[
3
]));
count
=
0
;
status
=
GdipGetPathGradientSurroundColorCount
(
grad
,
&
count
);
todo_wine
expect
(
Ok
,
status
);
todo_wine
expect
(
2
,
count
);
color
[
0
]
=
color
[
1
]
=
color
[
2
]
=
0xdeadbeef
;
count
=
3
;
status
=
GdipGetPathGradientSurroundColorsWithCount
(
grad
,
color
,
&
count
);
todo_wine
expect
(
Ok
,
status
);
todo_wine
expect
(
1
,
count
);
todo_wine
expect
(
0xffffffff
,
color
[
0
]);
todo_wine
expect
(
0xffffffff
,
color
[
1
]);
expect
(
0xdeadbeef
,
color
[
2
]);
color
[
0
]
=
color
[
1
]
=
color
[
2
]
=
0xdeadbeef
;
count
=
2
;
status
=
GdipGetPathGradientSurroundColorsWithCount
(
grad
,
color
,
&
count
);
todo_wine
expect
(
Ok
,
status
);
todo_wine
expect
(
1
,
count
);
todo_wine
expect
(
0xffffffff
,
color
[
0
]);
todo_wine
expect
(
0xffffffff
,
color
[
1
]);
expect
(
0xdeadbeef
,
color
[
2
]);
color
[
0
]
=
color
[
1
]
=
color
[
2
]
=
0xdeadbeef
;
count
=
1
;
status
=
GdipGetPathGradientSurroundColorsWithCount
(
grad
,
color
,
&
count
);
expect
(
InvalidParameter
,
status
);
expect
(
1
,
count
);
expect
(
0xdeadbeef
,
color
[
0
]);
expect
(
0xdeadbeef
,
color
[
1
]);
expect
(
0xdeadbeef
,
color
[
2
]);
color
[
0
]
=
color
[
1
]
=
color
[
2
]
=
0xdeadbeef
;
count
=
0
;
status
=
GdipGetPathGradientSurroundColorsWithCount
(
grad
,
color
,
&
count
);
expect
(
InvalidParameter
,
status
);
expect
(
0
,
count
);
expect
(
0xdeadbeef
,
color
[
0
]);
expect
(
0xdeadbeef
,
color
[
1
]);
expect
(
0xdeadbeef
,
color
[
2
]);
count
=
3
;
status
=
GdipSetPathGradientSurroundColorsWithCount
(
grad
,
color
,
&
count
);
expect
(
InvalidParameter
,
status
);
GdipFree
(
color
);
count
=
2
;
color
=
GdipAlloc
(
sizeof
(
ARGB
[
2
]));
color
[
0
]
=
0x00ff0000
;
color
[
1
]
=
0x0000ff00
;
...
...
@@ -820,7 +857,38 @@ static void test_gradientsurroundcolorcount(void)
todo_wine
expect
(
Ok
,
status
);
todo_wine
expect
(
2
,
count
);
GdipFree
(
color
);
color
[
0
]
=
color
[
1
]
=
color
[
2
]
=
0xdeadbeef
;
count
=
2
;
status
=
GdipGetPathGradientSurroundColorsWithCount
(
grad
,
color
,
&
count
);
todo_wine
expect
(
Ok
,
status
);
expect
(
2
,
count
);
todo_wine
expect
(
0x00ff0000
,
color
[
0
]);
todo_wine
expect
(
0x0000ff00
,
color
[
1
]);
expect
(
0xdeadbeef
,
color
[
2
]);
GdipDeleteBrush
((
GpBrush
*
)
grad
);
status
=
GdipCreatePathGradient
(
getbounds_ptf
,
3
,
WrapModeClamp
,
&
grad
);
expect
(
Ok
,
status
);
color
[
0
]
=
color
[
1
]
=
color
[
2
]
=
0xdeadbeef
;
count
=
3
;
status
=
GdipGetPathGradientSurroundColorsWithCount
(
grad
,
color
,
&
count
);
todo_wine
expect
(
Ok
,
status
);
todo_wine
expect
(
1
,
count
);
todo_wine
expect
(
0xffffffff
,
color
[
0
]);
todo_wine
expect
(
0xffffffff
,
color
[
1
]);
todo_wine
expect
(
0xffffffff
,
color
[
2
]);
color
[
0
]
=
color
[
1
]
=
color
[
2
]
=
0xdeadbeef
;
count
=
2
;
status
=
GdipGetPathGradientSurroundColorsWithCount
(
grad
,
color
,
&
count
);
expect
(
InvalidParameter
,
status
);
expect
(
2
,
count
);
expect
(
0xdeadbeef
,
color
[
0
]);
expect
(
0xdeadbeef
,
color
[
1
]);
expect
(
0xdeadbeef
,
color
[
2
]);
GdipDeleteBrush
((
GpBrush
*
)
grad
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment