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
4730f4ff
Commit
4730f4ff
authored
Jun 20, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Remove some old broken behavior.
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
75426bb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
text.c
dlls/user32/tests/text.c
+6
-10
No files found.
dlls/user32/tests/text.c
View file @
4730f4ff
...
...
@@ -146,8 +146,7 @@ static void test_DrawTextCalcRect(void)
SetRect
(
&
rect
,
10
,
10
,
100
,
100
);
SetLastError
(
0
);
heightcheck
=
textheight
=
DrawTextExA
(
hdc
,
NULL
,
-
1
,
&
rect
,
DT_CALCRECT
,
NULL
);
ok
(
EMPTY
(
rect
)
||
!
MODIFIED
(
rect
),
"rectangle should be empty or not modified got %d,%d-%d,%d
\n
"
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
ok
(
EMPTY
(
rect
),
"rectangle should be empty got %s
\n
"
,
wine_dbgstr_rect
(
&
rect
));
if
(
!
textheight
)
/* Windows NT 4 */
{
if
(
conform_xp
)
...
...
@@ -159,9 +158,7 @@ static void test_DrawTextCalcRect(void)
SetRect
(
&
rect
,
10
,
10
,
100
,
100
);
textheight
=
DrawTextA
(
hdc
,
NULL
,
-
1
,
&
rect
,
DT_CALCRECT
);
ok
(
EMPTY
(
rect
)
||
!
MODIFIED
(
rect
),
"rectangle should be empty or NOT modified got %d,%d-%d,%d
\n
"
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
ok
(
EMPTY
(
rect
),
"rectangle should be empty got %s
\n
"
,
wine_dbgstr_rect
(
&
rect
));
if
(
conform_xp
)
ok
(
textheight
!=
0
,
"Failed to get textheight from DrawTextA
\n
"
);
ok
(
textheight
==
heightcheck
,
"DrawTextEx and DrawText differ in return
\n
"
);
...
...
@@ -218,16 +215,15 @@ static void test_DrawTextCalcRect(void)
SetRect
(
&
rect
,
10
,
10
,
100
,
100
);
SetLastError
(
0
);
heightcheck
=
textheight
=
DrawTextExA
(
hdc
,
NULL
,
-
1
,
&
rect
,
DT_CALCRECT
|
DT_SINGLELINE
,
NULL
);
ok
(
(
!
EMPTY
(
rect
)
&&
MODIFIED
(
rect
))
||
!
MODIFIED
(
rect
)
,
"rectangle should be modified got %d,%d-%d,%d
\n
"
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
ok
(
!
EMPTY
(
rect
)
&&
MODIFIED
(
rect
),
"rectangle should be modified got %s
\n
"
,
wine_dbgstr_rect
(
&
rect
)
);
if
(
conform_xp
)
ok
(
textheight
!=
0
,
"Failed to get textheight from DrawTextExA
\n
"
);
SetRect
(
&
rect
,
10
,
10
,
100
,
100
);
textheight
=
DrawTextA
(
hdc
,
NULL
,
-
1
,
&
rect
,
DT_CALCRECT
|
DT_SINGLELINE
);
ok
(
(
!
EMPTY
(
rect
)
&&
MODIFIED
(
rect
))
||
!
MODIFIED
(
rect
),
"rectangle should be modified got %d,%d-%d,%d
\n
"
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
ok
(
!
EMPTY
(
rect
)
&&
MODIFIED
(
rect
),
"rectangle should be modified got %s
\n
"
,
wine_dbgstr_rect
(
&
rect
));
if
(
conform_xp
)
ok
(
textheight
!=
0
,
"Failed to get textheight from DrawTextA
\n
"
);
ok
(
textheight
==
heightcheck
,
"DrawTextEx and DrawText differ in return
\n
"
);
...
...
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