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
b20e75f5
Commit
b20e75f5
authored
Oct 11, 2010
by
Austin Lund
Committed by
Alexandre Julliard
Oct 13, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: Cleaned up ITextServices::TxGetNaturalSize test and fixed test failures.
parent
2c9b24b0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
txtsrv.c
dlls/riched20/tests/txtsrv.c
+7
-5
No files found.
dlls/riched20/tests/txtsrv.c
View file @
b20e75f5
...
...
@@ -726,15 +726,14 @@ static void test_TxGetNaturalSize(void) {
goto
cleanup
;
}
SetLastError
(
0xdeadbeef
);
result
=
ITextServices_TxGetNaturalSize
(
txtserv
,
DVASPECT_CONTENT
,
hdcDraw
,
NULL
,
NULL
,
TXTNS_FITTOCONTENT
,
&
psizelExtent
,
&
xdim
,
&
ydim
);
todo_wine
ok
(
result
==
S_OK
,
"TxGetNaturalSize failed (result = %x)
\n
"
,
result
);
if
(
result
!=
S_OK
)
{
skip
(
"TxGetNaturalSize measurements failed
\n
"
);
goto
cleanup
;
}
todo_wine
ok
(
result
==
S_OK
||
broken
(
result
==
E_FAIL
),
/* WINXP Arabic Language */
"TxGetNaturalSize gave unexpected return value (result = %x)
\n
"
,
result
);
if
(
result
==
S_OK
)
{
todo_wine
ok
(
ydim
==
tmInfo_text
.
tmHeight
,
"Height calculated incorrectly (expected %d, got %d)
\n
"
,
tmInfo_text
.
tmHeight
,
ydim
);
...
...
@@ -742,6 +741,9 @@ static void test_TxGetNaturalSize(void) {
todo_wine
ok
(
xdim
>=
charwidth_caps_text
[
0
]
&&
xdim
<=
charwidth_caps_text
[
0
]
+
1
,
"Width calculated incorrectly (expected %d {+1}, got %d)
\n
"
,
charwidth_caps_text
[
0
],
xdim
);
}
else
skip
(
"TxGetNaturalSize measurements not performed (xdim = %d, ydim = %d, result = %x, error = %x)
\n
"
,
xdim
,
ydim
,
result
,
GetLastError
());
cleanup:
RestoreDC
(
hdcDraw
,
1
);
...
...
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