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
75c2fb66
Commit
75c2fb66
authored
Oct 07, 2007
by
Huw Davies
Committed by
Alexandre Julliard
Oct 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Skip some font dependent tests if we don't have System or Tahoma installed.
parent
791be37a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
rebar.c
dlls/comctl32/tests/rebar.c
+25
-2
No files found.
dlls/comctl32/tests/rebar.c
View file @
75c2fb66
...
@@ -45,6 +45,23 @@ static HWND hRebar;
...
@@ -45,6 +45,23 @@ static HWND hRebar;
#define expect_eq(expr, value, type, format) { type ret = expr; ok((value) == ret, #expr " expected " format " got " format "\n", (value), (ret)); }
#define expect_eq(expr, value, type, format) { type ret = expr; ok((value) == ret, #expr " expected " format " got " format "\n", (value), (ret)); }
static
INT
CALLBACK
is_font_installed_proc
(
const
LOGFONT
*
elf
,
const
TEXTMETRIC
*
ntm
,
DWORD
type
,
LPARAM
lParam
)
{
return
0
;
}
static
BOOL
is_font_installed
(
const
char
*
name
)
{
HDC
hdc
=
GetDC
(
0
);
BOOL
ret
=
FALSE
;
if
(
!
EnumFontFamiliesA
(
hdc
,
name
,
is_font_installed_proc
,
0
))
ret
=
TRUE
;
ReleaseDC
(
0
,
hdc
);
return
ret
;
}
static
void
rebuild_rebar
(
HWND
*
hRebar
)
static
void
rebuild_rebar
(
HWND
*
hRebar
)
{
{
if
(
*
hRebar
)
if
(
*
hRebar
)
...
@@ -797,8 +814,14 @@ START_TEST(rebar)
...
@@ -797,8 +814,14 @@ START_TEST(rebar)
ShowWindow
(
hMainWnd
,
SW_SHOW
);
ShowWindow
(
hMainWnd
,
SW_SHOW
);
bandinfo_test
();
bandinfo_test
();
layout_test
();
resize_test
();
if
(
is_font_installed
(
"System"
)
&&
is_font_installed
(
"Tahoma"
))
{
layout_test
();
resize_test
();
}
else
skip
(
"Missing System or Tahoma font
\n
"
);
PostQuitMessage
(
0
);
PostQuitMessage
(
0
);
while
(
GetMessageA
(
&
msg
,
0
,
0
,
0
))
{
while
(
GetMessageA
(
&
msg
,
0
,
0
,
0
))
{
TranslateMessage
(
&
msg
);
TranslateMessage
(
&
msg
);
...
...
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