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
79fa94c3
Commit
79fa94c3
authored
Feb 09, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/tests: Added a drawing test for run reordering case.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ad9ab7c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
layout.c
dlls/dwrite/tests/layout.c
+26
-0
No files found.
dlls/dwrite/tests/layout.c
View file @
79fa94c3
...
@@ -1439,8 +1439,18 @@ static const struct drawcall_entry draw_single_run_seq[] = {
...
@@ -1439,8 +1439,18 @@ static const struct drawcall_entry draw_single_run_seq[] = {
{
DRAW_LAST_KIND
}
{
DRAW_LAST_KIND
}
};
};
static
const
struct
drawcall_entry
draw_reordered_run_seq
[]
=
{
{
DRAW_GLYPHRUN
,
{
'1'
,
'2'
,
'3'
,
'-'
,
'5'
,
'2'
,
0
}
},
{
DRAW_GLYPHRUN
,
{
0x64a
,
0x64f
,
0x633
,
0x627
,
0x648
,
0x650
,
0x64a
,
0
}
},
{
DRAW_GLYPHRUN
,
{
'7'
,
'1'
,
0
}
},
{
DRAW_GLYPHRUN
,
{
'.'
,
0
}
},
{
DRAW_LAST_KIND
}
};
static
void
test_Draw
(
void
)
static
void
test_Draw
(
void
)
{
{
static
const
WCHAR
str3W
[]
=
{
'1'
,
'2'
,
'3'
,
'-'
,
'5'
,
'2'
,
0x64a
,
0x64f
,
0x633
,
0x627
,
0x648
,
0x650
,
0x64a
,
'7'
,
'1'
,
'.'
,
0
};
static
const
WCHAR
strW
[]
=
{
's'
,
't'
,
'r'
,
'i'
,
'n'
,
'g'
,
0
};
static
const
WCHAR
strW
[]
=
{
's'
,
't'
,
'r'
,
'i'
,
'n'
,
'g'
,
0
};
static
const
WCHAR
str2W
[]
=
{
0x202a
,
0x202c
,
'a'
,
'b'
,
0
};
static
const
WCHAR
str2W
[]
=
{
0x202a
,
0x202c
,
'a'
,
'b'
,
0
};
static
const
WCHAR
ruW
[]
=
{
'r'
,
'u'
,
0
};
static
const
WCHAR
ruW
[]
=
{
'r'
,
'u'
,
0
};
...
@@ -1623,6 +1633,22 @@ static void test_Draw(void)
...
@@ -1623,6 +1633,22 @@ static void test_Draw(void)
IDWriteTextLayout_Release
(
layout
);
IDWriteTextLayout_Release
(
layout
);
IDWriteInlineObject_Release
(
inlineobj
);
IDWriteInlineObject_Release
(
inlineobj
);
/* text that triggers bidi run reordering */
hr
=
IDWriteFactory_CreateTextLayout
(
factory
,
str3W
,
lstrlenW
(
str3W
),
format
,
1000
.
0
f
,
100
.
0
f
,
&
layout
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ctxt
.
gdicompat
=
FALSE
;
ctxt
.
use_gdi_natural
=
FALSE
;
ctxt
.
snapping_disabled
=
TRUE
;
flush_sequence
(
sequences
,
RENDERER_ID
);
hr
=
IDWriteTextLayout_Draw
(
layout
,
&
ctxt
,
&
testrenderer
,
0
.
0
f
,
0
.
0
f
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok_sequence
(
sequences
,
RENDERER_ID
,
draw_reordered_run_seq
,
"draw test 11"
,
FALSE
);
IDWriteTextLayout_Release
(
layout
);
IDWriteTextFormat_Release
(
format
);
IDWriteTextFormat_Release
(
format
);
IDWriteFactory_Release
(
factory
);
IDWriteFactory_Release
(
factory
);
}
}
...
...
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