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
b83abb61
Commit
b83abb61
authored
Feb 25, 2008
by
Royal Chan
Committed by
Alexandre Julliard
Feb 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Added conformance tests for GdipDrawLineI.
parent
ea92872a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
graphics.c
dlls/gdiplus/tests/graphics.c
+39
-0
No files found.
dlls/gdiplus/tests/graphics.c
View file @
b83abb61
...
...
@@ -346,6 +346,44 @@ static void test_GdipDrawBezierI(void)
ReleaseDC
(
0
,
hdc
);
}
static
void
test_GdipDrawLineI
(
void
)
{
GpStatus
status
;
GpGraphics
*
graphics
=
NULL
;
GpPen
*
pen
=
NULL
;
HDC
hdc
=
GetDC
(
0
);
/* make a graphics object and pen object */
status
=
GdipCreateFromHDC
(
hdc
,
&
graphics
);
expect
(
Ok
,
status
);
ok
(
hdc
!=
NULL
,
"Expected HDC to be initialized
\n
"
);
status
=
GdipCreateFromHDC
(
hdc
,
&
graphics
);
expect
(
Ok
,
status
);
ok
(
graphics
!=
NULL
,
"Expected graphics to be initialized
\n
"
);
status
=
GdipCreatePen1
((
ARGB
)
0xffff00ff
,
10
.
0
f
,
UnitPixel
,
&
pen
);
expect
(
Ok
,
status
);
ok
(
pen
!=
NULL
,
"Expected pen to be initialized
\n
"
);
/* InvalidParameter cases: null graphics, null pen */
status
=
GdipDrawLineI
(
NULL
,
NULL
,
0
,
0
,
0
,
0
);
expect
(
InvalidParameter
,
status
);
status
=
GdipDrawLineI
(
graphics
,
NULL
,
0
,
0
,
0
,
0
);
expect
(
InvalidParameter
,
status
);
status
=
GdipDrawLineI
(
NULL
,
pen
,
0
,
0
,
0
,
0
);
expect
(
InvalidParameter
,
status
);
/* successful case */
status
=
GdipDrawLineI
(
graphics
,
pen
,
0
,
0
,
0
,
0
);
expect
(
Ok
,
status
);
GdipDeletePen
(
pen
);
ReleaseDC
(
0
,
hdc
);
}
START_TEST
(
graphics
)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
...
...
@@ -363,6 +401,7 @@ START_TEST(graphics)
test_GdipDrawBezierI
();
test_GdipDrawArc
();
test_GdipDrawArcI
();
test_GdipDrawLineI
();
GdiplusShutdown
(
gdiplusToken
);
}
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