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
e6a0fa9f
Commit
e6a0fa9f
authored
Feb 18, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Feb 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Output the requested font name on failure.
parent
ee339afa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
font.c
dlls/gdi32/tests/font.c
+5
-5
No files found.
dlls/gdi32/tests/font.c
View file @
e6a0fa9f
...
...
@@ -2574,16 +2574,16 @@ todo_wine /* Wine uses Arial for all substitutions */
cs
=
GetTextCharset
(
hdc
);
if
(
font_subst
[
i
].
charset
==
expected_cs
)
{
ok
(
cs
==
expected_cs
,
"expected %d, got %d
\n
"
,
expected_cs
,
cs
);
ok
(
cs
==
expected_cs
,
"expected %d, got %d
for font %s
\n
"
,
expected_cs
,
cs
,
font_subst
[
i
].
name
);
GetTextFaceA
(
hdc
,
sizeof
(
buf
),
buf
);
ok
(
!
lstrcmpiA
(
buf
,
font_subst
[
i
].
name
),
"expected %s, got %s
\n
"
,
font_subst
[
i
].
name
,
buf
);
}
else
{
ok
(
cs
==
ANSI_CHARSET
,
"expected ANSI_CHARSET, got %d
\n
"
,
cs
);
ok
(
cs
==
ANSI_CHARSET
,
"expected ANSI_CHARSET, got %d
for font %s
\n
"
,
cs
,
font_subst
[
i
].
name
);
GetTextFaceA
(
hdc
,
sizeof
(
buf
),
buf
);
ok
(
!
lstrcmpiA
(
buf
,
"Arial"
)
/* XP, Vista */
||
!
lstrcmpiA
(
buf
,
"Times New Roman"
)
/* Win9x */
,
"got %s
\n
"
,
buf
);
!
lstrcmpiA
(
buf
,
"Times New Roman"
)
/* Win9x */
,
"got %s
for font %s
\n
"
,
buf
,
font_subst
[
i
].
name
);
}
DeleteObject
(
SelectObject
(
hdc
,
hfont
));
...
...
@@ -2598,9 +2598,9 @@ todo_wine /* Wine uses Arial for all substitutions */
!
lstrcmpiA
(
buf
,
font_subst
[
i
].
name
)
/* XP, Vista */
||
!
lstrcmpiA
(
buf
,
"MS Serif"
)
/* Win9x */
||
!
lstrcmpiA
(
buf
,
"MS Sans Serif"
),
/* win2k3 */
"got %s
\n
"
,
buf
);
"got %s
for font %s
\n
"
,
buf
,
font_subst
[
i
].
name
);
cs
=
GetTextCharset
(
hdc
);
ok
(
cs
==
expected_cs
,
"expected %d, got %d
\n
"
,
expected_cs
,
cs
);
ok
(
cs
==
expected_cs
,
"expected %d, got %d
for font %s
\n
"
,
expected_cs
,
cs
,
font_subst
[
i
].
name
);
DeleteObject
(
SelectObject
(
hdc
,
hfont
));
}
...
...
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