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
aef50786
Commit
aef50786
authored
Jan 14, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/tests: Additional test for Draw().
parent
e292385f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
3 deletions
+24
-3
layout.c
dlls/dwrite/tests/layout.c
+24
-3
No files found.
dlls/dwrite/tests/layout.c
View file @
aef50786
...
...
@@ -785,7 +785,17 @@ static const struct drawcall_entry draw_seq[] = {
{
DRAW_LAST_KIND
}
};
static
void
test_draw_sequence
(
void
)
static
const
struct
drawcall_entry
draw_seq2
[]
=
{
{
DRAW_GLYPHRUN
},
{
DRAW_GLYPHRUN
},
{
DRAW_GLYPHRUN
},
{
DRAW_GLYPHRUN
},
{
DRAW_GLYPHRUN
},
{
DRAW_GLYPHRUN
},
{
DRAW_LAST_KIND
}
};
static
void
test_Draw
(
void
)
{
static
const
WCHAR
strW
[]
=
{
's'
,
't'
,
'r'
,
'i'
,
'n'
,
'g'
,
0
};
static
const
WCHAR
ruW
[]
=
{
'r'
,
'u'
,
0
};
...
...
@@ -831,9 +841,20 @@ static void test_draw_sequence(void)
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok_sequence
(
sequences
,
RENDERER_ID
,
draw_seq
,
"draw test"
,
TRUE
);
IDWriteTextLayout_Release
(
layout
);
/* with reduced width DrawGlyphRun() is called for every line */
hr
=
IDWriteFactory_CreateTextLayout
(
factory
,
strW
,
6
,
format
,
5
.
0
,
100
.
0
,
&
layout
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
flush_sequence
(
sequences
,
RENDERER_ID
);
hr
=
IDWriteTextLayout_Draw
(
layout
,
NULL
,
&
testrenderer
,
0
.
0
,
0
.
0
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok_sequence
(
sequences
,
RENDERER_ID
,
draw_seq2
,
"draw test 2"
,
TRUE
);
IDWriteTextFormat_Release
(
format
);
IDWriteTextLayout_Release
(
layout
);
IDWriteTextFormat_Release
(
format
);
}
static
void
test_typography
(
void
)
...
...
@@ -1010,7 +1031,7 @@ START_TEST(layout)
test_CreateEllipsisTrimmingSign
();
test_fontweight
();
test_SetInlineObject
();
test_
draw_sequence
();
test_
Draw
();
test_typography
();
test_GetClusterMetrics
();
test_SetLocaleName
();
...
...
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