Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0fb88f8d
Commit
0fb88f8d
authored
May 11, 2014
by
Alex Henrie
Committed by
Alexandre Julliard
May 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Add MS Shell Dlg tests.
parent
6ebe1c60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
font.c
dlls/gdi32/tests/font.c
+23
-0
No files found.
dlls/gdi32/tests/font.c
View file @
0fb88f8d
...
...
@@ -4681,6 +4681,7 @@ static void test_EnumFonts(void)
int
ret
;
LOGFONTA
lf
;
HDC
hdc
;
struct
enum_fullname_data
efnd
;
if
(
!
is_truetype_font_installed
(
"Arial"
))
{
...
...
@@ -4741,6 +4742,28 @@ static void test_EnumFonts(void)
ret
=
EnumFontFamiliesA
(
hdc
,
NULL
,
enum_all_fonts_proc
,
(
LPARAM
)
&
lf
);
ok
(
ret
,
"font Arial Italic Bold should not be enumerated
\n
"
);
/* MS Shell Dlg and MS Shell Dlg 2 must exist */
memset
(
&
lf
,
0
,
sizeof
(
lf
));
lf
.
lfCharSet
=
DEFAULT_CHARSET
;
memset
(
&
efnd
,
0
,
sizeof
(
efnd
));
strcpy
(
lf
.
lfFaceName
,
"MS Shell Dlg"
);
ret
=
EnumFontFamiliesExA
(
hdc
,
&
lf
,
enum_fullname_data_proc
,
(
LPARAM
)
&
efnd
,
0
);
ok
(
ret
,
"font MS Shell Dlg is not enumerated
\n
"
);
ret
=
strcmp
((
char
*
)
efnd
.
elf
[
0
].
elfLogFont
.
lfFaceName
,
"MS Shell Dlg"
);
todo_wine
ok
(
!
ret
,
"expected MS Shell Dlg got %s
\n
"
,
efnd
.
elf
[
0
].
elfLogFont
.
lfFaceName
);
ret
=
strcmp
((
char
*
)
efnd
.
elf
[
0
].
elfFullName
,
"MS Shell Dlg"
);
ok
(
ret
,
"did not expect MS Shell Dlg
\n
"
);
memset
(
&
efnd
,
0
,
sizeof
(
efnd
));
strcpy
(
lf
.
lfFaceName
,
"MS Shell Dlg 2"
);
ret
=
EnumFontFamiliesExA
(
hdc
,
&
lf
,
enum_fullname_data_proc
,
(
LPARAM
)
&
efnd
,
0
);
ok
(
ret
,
"font MS Shell Dlg 2 is not enumerated
\n
"
);
ret
=
strcmp
((
char
*
)
efnd
.
elf
[
0
].
elfLogFont
.
lfFaceName
,
"MS Shell Dlg 2"
);
todo_wine
ok
(
!
ret
,
"expected MS Shell Dlg 2 got %s
\n
"
,
efnd
.
elf
[
0
].
elfLogFont
.
lfFaceName
);
ret
=
strcmp
((
char
*
)
efnd
.
elf
[
0
].
elfFullName
,
"MS Shell Dlg 2"
);
ok
(
ret
,
"did not expect MS Shell Dlg 2
\n
"
);
DeleteDC
(
hdc
);
}
...
...
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