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
dee8657b
Commit
dee8657b
authored
Oct 16, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add some tests for pathiterator, fix leaks.
parent
de2a187b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
3 deletions
+50
-3
pathiterator.c
dlls/gdiplus/tests/pathiterator.c
+50
-3
No files found.
dlls/gdiplus/tests/pathiterator.c
View file @
dee8657b
...
...
@@ -459,8 +459,6 @@ static void test_nextsubpath(void)
INT
start
,
end
,
result
;
BOOL
closed
;
GdipCreatePath
(
FillModeAlternate
,
&
path
);
/* empty path */
GdipCreatePath
(
FillModeAlternate
,
&
path
);
GdipCreatePathIter
(
&
iter
,
path
);
...
...
@@ -471,8 +469,8 @@ static void test_nextsubpath(void)
expect
(
Ok
,
stat
);
expect
(
0
,
result
);
expect
(
TRUE
,
closed
);
GdipCreatePathIter
(
&
iter
,
path
);
GdipDeletePathIter
(
iter
);
GdipDeletePath
(
path
);
}
...
...
@@ -500,6 +498,55 @@ static void test_nextpathtype(void)
expect
(
InvalidParameter
,
stat
);
stat
=
GdipPathIterNextPathType
(
iter
,
NULL
,
&
type
,
&
start
,
&
end
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipPathIterNextPathType
(
iter
,
&
result
,
&
type
,
NULL
,
NULL
);
expect
(
InvalidParameter
,
stat
);
/* empty path */
start
=
end
=
result
=
(
INT
)
0xdeadbeef
;
stat
=
GdipPathIterNextPathType
(
iter
,
&
result
,
&
type
,
&
start
,
&
end
);
todo_wine
expect
(
Ok
,
stat
);
expect
((
INT
)
0xdeadbeef
,
start
);
expect
((
INT
)
0xdeadbeef
,
end
);
todo_wine
expect
(
0
,
result
);
GdipDeletePathIter
(
iter
);
/* single figure */
GdipAddPathLine
(
path
,
0
.
0
,
0
.
0
,
10
.
0
,
30
.
0
);
GdipCreatePathIter
(
&
iter
,
path
);
start
=
end
=
result
=
(
INT
)
0xdeadbeef
;
type
=
255
;
/* out of range */
stat
=
GdipPathIterNextPathType
(
iter
,
&
result
,
&
type
,
&
start
,
&
end
);
todo_wine
expect
(
Ok
,
stat
);
expect
((
INT
)
0xdeadbeef
,
start
);
expect
((
INT
)
0xdeadbeef
,
end
);
expect
(
255
,
type
);
todo_wine
expect
(
0
,
result
);
GdipDeletePathIter
(
iter
);
GdipAddPathEllipse
(
path
,
0
.
0
,
0
.
0
,
35
.
0
,
70
.
0
);
GdipCreatePathIter
(
&
iter
,
path
);
start
=
end
=
result
=
(
INT
)
0xdeadbeef
;
type
=
255
;
/* out of range */
stat
=
GdipPathIterNextPathType
(
iter
,
&
result
,
&
type
,
&
start
,
&
end
);
todo_wine
expect
(
Ok
,
stat
);
expect
((
INT
)
0xdeadbeef
,
start
);
expect
((
INT
)
0xdeadbeef
,
end
);
expect
(
255
,
type
);
todo_wine
expect
(
0
,
result
);
GdipDeletePathIter
(
iter
);
/* closed */
GdipClosePathFigure
(
path
);
GdipCreatePathIter
(
&
iter
,
path
);
start
=
end
=
result
=
(
INT
)
0xdeadbeef
;
type
=
255
;
/* out of range */
stat
=
GdipPathIterNextPathType
(
iter
,
&
result
,
&
type
,
&
start
,
&
end
);
todo_wine
expect
(
Ok
,
stat
);
expect
((
INT
)
0xdeadbeef
,
start
);
expect
((
INT
)
0xdeadbeef
,
end
);
expect
(
255
,
type
);
todo_wine
expect
(
0
,
result
);
GdipDeletePathIter
(
iter
);
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