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
c05d8781
Commit
c05d8781
authored
Jan 16, 2011
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Jan 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Add more tests for GetCharABCWidthsA.
parent
c66d27c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
font.c
dlls/gdi32/tests/font.c
+13
-0
No files found.
dlls/gdi32/tests/font.c
View file @
c05d8781
...
...
@@ -962,6 +962,8 @@ static void test_GetCharABCWidths(void)
for
(
i
=
0
;
i
<
sizeof
c
/
sizeof
c
[
0
];
++
i
)
{
ABC
a
[
2
],
w
[
2
];
ABC
full
[
256
];
UINT
code
=
0x41
;
lf
.
lfFaceName
[
0
]
=
'\0'
;
lf
.
lfCharSet
=
c
[
i
].
cs
;
...
...
@@ -979,6 +981,17 @@ static void test_GetCharABCWidths(void)
pGetCharABCWidthsW
(
hdc
,
c
[
i
].
w
,
c
[
i
].
w
+
1
,
w
)
&&
memcmp
(
a
,
w
,
sizeof
a
)
==
0
,
"GetCharABCWidthsA and GetCharABCWidthsW should return same widths. charset = %u
\n
"
,
c
[
i
].
cs
);
memset
(
a
,
0xbb
,
sizeof
a
);
ret
=
pGetCharABCWidthsA
(
hdc
,
code
,
code
,
a
);
ok
(
ret
,
"GetCharABCWidthsA should have succeeded
\n
"
);
memset
(
full
,
0xcc
,
sizeof
full
);
ret
=
pGetCharABCWidthsA
(
hdc
,
0x00
,
code
,
full
);
ok
(
ret
,
"GetCharABCWidthsA should have succeeded
\n
"
);
todo_wine
ok
(
memcmp
(
&
a
[
0
],
&
full
[
code
],
sizeof
(
ABC
))
==
0
,
"GetCharABCWidthsA info should match. codepage = %u
\n
"
,
c
[
i
].
cs
);
hfont
=
SelectObject
(
hdc
,
hfont
);
DeleteObject
(
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