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
cc7b3968
Commit
cc7b3968
authored
Sep 20, 2013
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Sep 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Add more empty glyph tests.
parent
084f4b64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
0 deletions
+68
-0
font.c
dlls/gdi32/tests/font.c
+68
-0
No files found.
dlls/gdi32/tests/font.c
View file @
cc7b3968
...
...
@@ -4029,6 +4029,8 @@ static void test_GetGlyphOutline(void)
LOGFONTA
lf
;
HFONT
hfont
,
old_hfont
;
INT
ret
,
ret2
;
const
UINT
fmt
[]
=
{
GGO_METRICS
,
GGO_BITMAP
,
GGO_GRAY2_BITMAP
,
GGO_GRAY4_BITMAP
,
GGO_GRAY8_BITMAP
};
static
const
struct
{
UINT
cs
;
...
...
@@ -4105,6 +4107,72 @@ static void test_GetGlyphOutline(void)
ok
(
GetLastError
()
==
0xdeadbeef
,
"expected 0xdeadbeef, got %u
\n
"
,
GetLastError
());
}
for
(
i
=
0
;
i
<
sizeof
(
fmt
)
/
sizeof
(
fmt
[
0
]);
++
i
)
{
DWORD
dummy
;
memset
(
&
gm
,
0xab
,
sizeof
(
gm
));
SetLastError
(
0xdeadbeef
);
ret
=
GetGlyphOutlineW
(
hdc
,
' '
,
fmt
[
i
],
&
gm
,
0
,
NULL
,
&
mat
);
if
(
GetLastError
()
!=
ERROR_CALL_NOT_IMPLEMENTED
)
{
if
(
fmt
[
i
]
==
GGO_METRICS
)
ok
(
ret
!=
GDI_ERROR
,
"%2d:GetGlyphOutlineW should succeed, got %d
\n
"
,
fmt
[
i
],
ret
);
else
ok
(
ret
==
0
,
"%2d:GetGlyphOutlineW should return 0, got %d
\n
"
,
fmt
[
i
],
ret
);
todo_wine
{
ok
(
gm
.
gmBlackBoxX
==
1
,
"%2d:expected 1, got %u
\n
"
,
fmt
[
i
],
gm
.
gmBlackBoxX
);
ok
(
gm
.
gmBlackBoxY
==
1
,
"%2d:expected 1, got %u
\n
"
,
fmt
[
i
],
gm
.
gmBlackBoxX
);
}
}
memset
(
&
gm
,
0xab
,
sizeof
(
gm
));
SetLastError
(
0xdeadbeef
);
ret
=
GetGlyphOutlineW
(
hdc
,
' '
,
fmt
[
i
],
&
gm
,
0
,
&
dummy
,
&
mat
);
if
(
GetLastError
()
!=
ERROR_CALL_NOT_IMPLEMENTED
)
{
if
(
fmt
[
i
]
==
GGO_METRICS
)
ok
(
ret
!=
GDI_ERROR
,
"%2d:GetGlyphOutlineW should succeed, got %d
\n
"
,
fmt
[
i
],
ret
);
else
ok
(
ret
==
0
,
"%2d:GetGlyphOutlineW should return 0, got %d
\n
"
,
fmt
[
i
],
ret
);
todo_wine
{
ok
(
gm
.
gmBlackBoxX
==
1
,
"%2d:expected 1, got %u
\n
"
,
fmt
[
i
],
gm
.
gmBlackBoxX
);
ok
(
gm
.
gmBlackBoxY
==
1
,
"%2d:expected 1, got %u
\n
"
,
fmt
[
i
],
gm
.
gmBlackBoxX
);
}
}
memset
(
&
gm
,
0xab
,
sizeof
(
gm
));
SetLastError
(
0xdeadbeef
);
ret
=
GetGlyphOutlineW
(
hdc
,
' '
,
fmt
[
i
],
&
gm
,
sizeof
(
dummy
),
NULL
,
&
mat
);
if
(
GetLastError
()
!=
ERROR_CALL_NOT_IMPLEMENTED
)
{
if
(
fmt
[
i
]
==
GGO_METRICS
)
ok
(
ret
!=
GDI_ERROR
,
"%2d:GetGlyphOutlineW should succeed, got %d
\n
"
,
fmt
[
i
],
ret
);
else
ok
(
ret
==
0
,
"%2d:GetGlyphOutlineW should return 0, got %d
\n
"
,
fmt
[
i
],
ret
);
todo_wine
{
ok
(
gm
.
gmBlackBoxX
==
1
,
"%2d:expected 1, got %u
\n
"
,
fmt
[
i
],
gm
.
gmBlackBoxX
);
ok
(
gm
.
gmBlackBoxY
==
1
,
"%2d:expected 1, got %u
\n
"
,
fmt
[
i
],
gm
.
gmBlackBoxX
);
}
}
memset
(
&
gm
,
0xab
,
sizeof
(
gm
));
SetLastError
(
0xdeadbeef
);
ret
=
GetGlyphOutlineW
(
hdc
,
' '
,
fmt
[
i
],
&
gm
,
sizeof
(
dummy
),
&
dummy
,
&
mat
);
if
(
GetLastError
()
!=
ERROR_CALL_NOT_IMPLEMENTED
)
{
if
(
fmt
[
i
]
==
GGO_METRICS
)
{
ok
(
ret
!=
GDI_ERROR
,
"%2d:GetGlyphOutlineW should succeed, got %d
\n
"
,
fmt
[
i
],
ret
);
todo_wine
{
ok
(
gm
.
gmBlackBoxX
==
1
,
"%2d:expected 1, got %u
\n
"
,
fmt
[
i
],
gm
.
gmBlackBoxX
);
ok
(
gm
.
gmBlackBoxY
==
1
,
"%2d:expected 1, got %u
\n
"
,
fmt
[
i
],
gm
.
gmBlackBoxX
);
}
}
else
todo_wine
ok
(
ret
==
GDI_ERROR
,
"%2d:GetGlyphOutlineW should return GDI_ERROR, got %d
\n
"
,
fmt
[
i
],
ret
);
}
}
SelectObject
(
hdc
,
old_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