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
8348c0eb
Commit
8348c0eb
authored
Sep 01, 2015
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Sep 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Add enhanced metafile GetPath test.
parent
2127f72f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
metafile.c
dlls/gdi32/tests/metafile.c
+34
-0
No files found.
dlls/gdi32/tests/metafile.c
View file @
8348c0eb
...
...
@@ -3361,6 +3361,39 @@ static void test_emf_polybezier(void)
DeleteEnhMetaFile
(
hemf
);
}
static
void
test_emf_GetPath
(
void
)
{
HDC
hdcMetafile
;
HENHMETAFILE
hemf
;
BOOL
ret
;
int
size
;
SetLastError
(
0xdeadbeef
);
hdcMetafile
=
CreateEnhMetaFileA
(
GetDC
(
0
),
NULL
,
NULL
,
NULL
);
ok
(
hdcMetafile
!=
0
,
"CreateEnhMetaFileA error %d
\n
"
,
GetLastError
());
BeginPath
(
hdcMetafile
);
ret
=
MoveToEx
(
hdcMetafile
,
50
,
50
,
NULL
);
ok
(
ret
,
"MoveToEx error %d.
\n
"
,
GetLastError
());
ret
=
LineTo
(
hdcMetafile
,
50
,
150
);
ok
(
ret
,
"LineTo error %d.
\n
"
,
GetLastError
());
ret
=
LineTo
(
hdcMetafile
,
150
,
150
);
ok
(
ret
,
"LineTo error %d.
\n
"
,
GetLastError
());
ret
=
LineTo
(
hdcMetafile
,
150
,
50
);
ok
(
ret
,
"LineTo error %d.
\n
"
,
GetLastError
());
ret
=
LineTo
(
hdcMetafile
,
50
,
50
);
ok
(
ret
,
"LineTo error %d.
\n
"
,
GetLastError
());
EndPath
(
hdcMetafile
);
size
=
GetPath
(
hdcMetafile
,
NULL
,
NULL
,
0
);
todo_wine
ok
(
size
==
5
,
"GetPath returned %d.
\n
"
,
size
);
hemf
=
CloseEnhMetaFile
(
hdcMetafile
);
ok
(
hemf
!=
0
,
"CloseEnhMetaFile error %d
\n
"
,
GetLastError
());
DeleteEnhMetaFile
(
hemf
);
}
START_TEST
(
metafile
)
{
init_function_pointers
();
...
...
@@ -3374,6 +3407,7 @@ START_TEST(metafile)
test_emf_ExtTextOut_on_path
();
test_emf_clipping
();
test_emf_polybezier
();
test_emf_GetPath
();
/* For win-format metafiles (mfdrv) */
test_mf_SaveDC
();
...
...
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