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
fa5d0910
Commit
fa5d0910
authored
Apr 17, 2013
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Apr 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus/tests: Add tests for GdipSetCustomLineCapWidthScale.
parent
da7fe7ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
1 deletion
+34
-1
customlinecap.c
dlls/gdiplus/tests/customlinecap.c
+34
-1
No files found.
dlls/gdiplus/tests/customlinecap.c
View file @
fa5d0910
...
...
@@ -174,12 +174,45 @@ static void test_scale(void)
expect
(
InvalidParameter
,
stat
);
stat
=
GdipGetCustomLineCapWidthScale
(
custom
,
NULL
);
expect
(
InvalidParameter
,
stat
);
/* valid args */
stat
=
GdipSetCustomLineCapWidthScale
(
NULL
,
2
.
0
);
expect
(
InvalidParameter
,
stat
);
/* valid args: read default */
scale
=
(
REAL
)
0xdeadbeef
;
stat
=
GdipGetCustomLineCapWidthScale
(
custom
,
&
scale
);
expect
(
Ok
,
stat
);
expectf
(
1
.
0
,
scale
);
/* set and read back some scale values: there is no limit for the scale */
stat
=
GdipSetCustomLineCapWidthScale
(
custom
,
2
.
5
);
expect
(
Ok
,
stat
);
scale
=
(
REAL
)
0xdeadbeef
;
stat
=
GdipGetCustomLineCapWidthScale
(
custom
,
&
scale
);
expect
(
Ok
,
stat
);
expectf
(
2
.
5
,
scale
);
stat
=
GdipSetCustomLineCapWidthScale
(
custom
,
42
.
0
);
expect
(
Ok
,
stat
);
scale
=
(
REAL
)
0xdeadbeef
;
stat
=
GdipGetCustomLineCapWidthScale
(
custom
,
&
scale
);
expect
(
Ok
,
stat
);
expectf
(
42
.
0
,
scale
);
stat
=
GdipSetCustomLineCapWidthScale
(
custom
,
3000
.
0
);
expect
(
Ok
,
stat
);
scale
=
(
REAL
)
0xdeadbeef
;
stat
=
GdipGetCustomLineCapWidthScale
(
custom
,
&
scale
);
expect
(
Ok
,
stat
);
expectf
(
3000
.
0
,
scale
);
stat
=
GdipSetCustomLineCapWidthScale
(
custom
,
0
.
0
);
expect
(
Ok
,
stat
);
scale
=
(
REAL
)
0xdeadbeef
;
stat
=
GdipGetCustomLineCapWidthScale
(
custom
,
&
scale
);
expect
(
Ok
,
stat
);
expectf
(
0
.
0
,
scale
);
GdipDeleteCustomLineCap
(
custom
);
GdipDeletePath
(
path
);
}
...
...
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