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
20b5cdb1
Commit
20b5cdb1
authored
Feb 02, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/tests: Test that soft hyphen is not marked as a whitespace.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e7094551
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
analyzer.c
dlls/dwrite/tests/analyzer.c
+3
-0
layout.c
dlls/dwrite/tests/layout.c
+2
-0
No files found.
dlls/dwrite/tests/analyzer.c
View file @
20b5cdb1
...
...
@@ -1028,6 +1028,9 @@ static void compare_breakpoints(const struct linebreaks_test *test, DWRITE_LINE_
conditions
[
test
->
bp
[
i
].
breakConditionAfter
],
test
->
bp
[
i
].
isWhitespace
?
"WS"
:
"0"
,
test
->
bp
[
i
].
isSoftHyphen
?
"SHY"
:
"0"
);
if
(
g_actual_bp
[
i
].
isSoftHyphen
)
ok
(
!
g_actual_bp
[
i
].
isWhitespace
,
"%s: soft hyphen marked as a whitespace
\n
"
,
wine_dbgstr_wn
(
&
test
->
text
[
i
],
1
));
text
++
;
i
++
;
}
...
...
dlls/dwrite/tests/layout.c
View file @
20b5cdb1
...
...
@@ -2025,6 +2025,8 @@ todo_wine
for
(
i
=
0
;
i
<
count
;
i
++
)
{
ok
(
metrics
[
i
].
length
==
1
,
"%d: got %d
\n
"
,
i
,
metrics
[
i
].
length
);
ok
(
metrics
[
i
].
isSoftHyphen
==
(
i
==
count
-
2
),
"%d: got %d
\n
"
,
i
,
metrics
[
i
].
isSoftHyphen
);
if
(
metrics
[
i
].
isSoftHyphen
)
ok
(
!
metrics
[
i
].
isWhitespace
,
"%u: got %d
\n
"
,
i
,
metrics
[
i
].
isWhitespace
);
if
(
metrics
[
i
].
isNewline
)
{
if
(
i
==
17
||
i
==
19
)
todo_wine
ok
(
metrics
[
i
].
width
==
0
.
0
f
,
"%u: got width %f
\n
"
,
i
,
metrics
[
i
].
width
);
...
...
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