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
11be16ca
Commit
11be16ca
authored
Feb 09, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Turn some asserts in font tests into regular tests.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6389f411
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
font.c
dlls/gdi32/tests/font.c
+4
-4
No files found.
dlls/gdi32/tests/font.c
View file @
11be16ca
...
...
@@ -926,7 +926,7 @@ static void test_bitmap_font_metrics(void)
trace
(
"ACP %d -> charset %d
\n
"
,
GetACP
(),
expected_cs
);
hdc
=
CreateCompatibleDC
(
0
);
assert
(
hdc
);
ok
(
hdc
!=
NULL
,
"failed to create hdc
\n
"
);
trace
(
"logpixelsX %d, logpixelsY %d
\n
"
,
GetDeviceCaps
(
hdc
,
LOGPIXELSX
),
GetDeviceCaps
(
hdc
,
LOGPIXELSY
));
...
...
@@ -1746,7 +1746,7 @@ static void test_GetKerningPairs(void)
strcpy
(
lf
.
lfFaceName
,
kd
[
i
].
face_name
);
lf
.
lfHeight
=
kd
[
i
].
height
;
hfont
=
CreateFontIndirectA
(
&
lf
);
assert
(
hfont
!=
0
);
ok
(
hfont
!=
NULL
,
"failed to create a font, name %s
\n
"
,
kd
[
i
].
face_name
);
hfont_old
=
SelectObject
(
hdc
,
hfont
);
...
...
@@ -1872,7 +1872,7 @@ static void test_height( HDC hdc, const struct font_data *fd )
strcpy
(
lf
.
lfFaceName
,
fd
[
i
].
face_name
);
hfont
=
CreateFontIndirectA
(
&
lf
);
assert
(
hfont
);
ok
(
hfont
!=
NULL
,
"failed to create a font, name %s
\n
"
,
fd
[
i
].
face_name
);
old_hfont
=
SelectObject
(
hdc
,
hfont
);
ret
=
GetTextMetricsA
(
hdc
,
&
tm
);
...
...
@@ -2098,7 +2098,7 @@ static void test_height_selection(void)
{
""
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
}
};
HDC
hdc
=
CreateCompatibleDC
(
0
);
assert
(
hdc
);
ok
(
hdc
!=
NULL
,
"failed to create hdc
\n
"
);
test_height
(
hdc
,
tahoma
);
test_height_selection_vdmx
(
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