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
9d74a11e
Commit
9d74a11e
authored
Jun 08, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/tests: A test for case-sensitivity of SetFontFamilyName.
parent
a3150b95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
layout.c
dlls/dwrite/tests/layout.c
+15
-0
No files found.
dlls/dwrite/tests/layout.c
View file @
9d74a11e
...
@@ -1900,6 +1900,7 @@ static void test_SetFontSize(void)
...
@@ -1900,6 +1900,7 @@ static void test_SetFontSize(void)
static
void
test_SetFontFamilyName
(
void
)
static
void
test_SetFontFamilyName
(
void
)
{
{
static
const
WCHAR
taHomaW
[]
=
{
'T'
,
'a'
,
'H'
,
'o'
,
'm'
,
'a'
,
0
};
static
const
WCHAR
arialW
[]
=
{
'A'
,
'r'
,
'i'
,
'a'
,
'l'
,
0
};
static
const
WCHAR
arialW
[]
=
{
'A'
,
'r'
,
'i'
,
'a'
,
'l'
,
0
};
static
const
WCHAR
strW
[]
=
{
'a'
,
'b'
,
'c'
,
'd'
,
0
};
static
const
WCHAR
strW
[]
=
{
'a'
,
'b'
,
'c'
,
'd'
,
0
};
IDWriteTextFormat
*
format
;
IDWriteTextFormat
*
format
;
...
@@ -1931,6 +1932,20 @@ static void test_SetFontFamilyName(void)
...
@@ -1931,6 +1932,20 @@ static void test_SetFontFamilyName(void)
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
r
.
startPosition
==
0
&&
r
.
length
==
~
0u
,
"got %u, %u
\n
"
,
r
.
startPosition
,
r
.
length
);
ok
(
r
.
startPosition
==
0
&&
r
.
length
==
~
0u
,
"got %u, %u
\n
"
,
r
.
startPosition
,
r
.
length
);
/* set name only different in casing */
r
.
startPosition
=
1
;
r
.
length
=
1
;
hr
=
IDWriteTextLayout_SetFontFamilyName
(
layout
,
taHomaW
,
r
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
r
.
startPosition
=
0
;
r
.
length
=
0
;
nameW
[
0
]
=
0
;
hr
=
IDWriteTextLayout_GetFontFamilyName
(
layout
,
1
,
nameW
,
sizeof
(
nameW
)
/
sizeof
(
WCHAR
),
&
r
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
nameW
,
taHomaW
),
"got %s
\n
"
,
wine_dbgstr_w
(
nameW
));
ok
(
r
.
startPosition
==
1
&&
r
.
length
==
1
,
"got %u, %u
\n
"
,
r
.
startPosition
,
r
.
length
);
r
.
startPosition
=
1
;
r
.
startPosition
=
1
;
r
.
length
=
1
;
r
.
length
=
1
;
hr
=
IDWriteTextLayout_SetFontFamilyName
(
layout
,
arialW
,
r
);
hr
=
IDWriteTextLayout_SetFontFamilyName
(
layout
,
arialW
,
r
);
...
...
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