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
c03ccff2
Commit
c03ccff2
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: Finish the move to use wine_dbgstr_rect().
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
827cd8f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
22 deletions
+12
-22
text.c
dlls/user32/tests/text.c
+12
-22
No files found.
dlls/user32/tests/text.c
View file @
c03ccff2
...
...
@@ -130,15 +130,12 @@ static void test_DrawTextCalcRect(void)
SetRect
(
&
rect
,
10
,
10
,
100
,
100
);
SetLastError
(
0
);
heightcheck
=
textheight
=
DrawTextExA
(
hdc
,
emptystring
,
-
1
,
&
rect
,
DT_CALCRECT
,
NULL
);
ok
(
EMPTY
(
rect
),
"rectangle should be empty 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
));
ok
(
textheight
!=
0
,
"Failed to get textheight from DrawTextExA
\n
"
);
SetRect
(
&
rect
,
10
,
10
,
100
,
100
);
textheight
=
DrawTextA
(
hdc
,
emptystring
,
-
1
,
&
rect
,
DT_CALCRECT
);
ok
(
EMPTY
(
rect
),
"rectangle should be empty 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
));
ok
(
textheight
!=
0
,
"Failed to get textheight from DrawTextA
\n
"
);
ok
(
textheight
==
heightcheck
,
"DrawTextEx and DrawText differ in return
\n
"
);
...
...
@@ -197,15 +194,14 @@ static void test_DrawTextCalcRect(void)
SetRect
(
&
rect
,
10
,
10
,
100
,
100
);
SetLastError
(
0
);
heightcheck
=
textheight
=
DrawTextExA
(
hdc
,
emptystring
,
-
1
,
&
rect
,
DT_CALCRECT
|
DT_SINGLELINE
,
NULL
);
ok
(
!
EMPTY
(
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
)
);
ok
(
textheight
!=
0
,
"Failed to get textheight from DrawTextExA
\n
"
);
SetRect
(
&
rect
,
10
,
10
,
100
,
100
);
textheight
=
DrawTextA
(
hdc
,
emptystring
,
-
1
,
&
rect
,
DT_CALCRECT
|
DT_SINGLELINE
);
ok
(
!
EMPTY
(
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
));
ok
(
textheight
!=
0
,
"Failed to get textheight from DrawTextA
\n
"
);
ok
(
textheight
==
heightcheck
,
"DrawTextEx and DrawText differ in return
\n
"
);
...
...
@@ -339,16 +335,12 @@ static void test_DrawTextCalcRect(void)
SetRect
(
&
rect
,
10
,
10
,
100
,
100
);
heightcheck
=
textheight
=
DrawTextExW
(
hdc
,
emptystringW
,
-
1
,
&
rect
,
DT_CALCRECT
,
NULL
);
ok
(
EMPTY
(
rect
),
"rectangle should be empty 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
));
ok
(
textheight
!=
0
,
"Failed to get textheight from DrawTextExW
\n
"
);
SetRect
(
&
rect
,
10
,
10
,
100
,
100
);
textheight
=
DrawTextW
(
hdc
,
emptystringW
,
-
1
,
&
rect
,
DT_CALCRECT
);
ok
(
EMPTY
(
rect
),
"rectangle should be empty 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
));
ok
(
textheight
!=
0
,
"Failed to get textheight from DrawTextW
\n
"
);
ok
(
textheight
==
heightcheck
,
"DrawTextEx and DrawText differ in return
\n
"
);
...
...
@@ -406,16 +398,14 @@ static void test_DrawTextCalcRect(void)
SetRect
(
&
rect
,
10
,
10
,
100
,
100
);
heightcheck
=
textheight
=
DrawTextExW
(
hdc
,
emptystringW
,
-
1
,
&
rect
,
DT_CALCRECT
|
DT_SINGLELINE
,
NULL
);
ok
(
!
EMPTY
(
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
));
ok
(
textheight
!=
0
,
"Failed to get textheight from DrawTextExW
\n
"
);
SetRect
(
&
rect
,
10
,
10
,
100
,
100
);
textheight
=
DrawTextW
(
hdc
,
emptystringW
,
-
1
,
&
rect
,
DT_CALCRECT
|
DT_SINGLELINE
);
ok
(
!
EMPTY
(
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
));
ok
(
textheight
!=
0
,
"Failed to get textheight from DrawTextW
\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