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
bab3d82b
Commit
bab3d82b
authored
Mar 27, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Mar 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Add more DrawText tests.
parent
0fac05b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
text.c
dlls/user32/tests/text.c
+17
-0
No files found.
dlls/user32/tests/text.c
View file @
bab3d82b
...
...
@@ -147,6 +147,23 @@ static void test_DrawTextCalcRect(void)
"rectangle should NOT be empty.
\n
"
);
}
/* More test cases from bug 12226 */
SetRect
(
&
rect
,
0
,
0
,
0
,
0
);
textheight
=
DrawTextA
(
hdc
,
emptystring
,
-
1
,
&
rect
,
DT_CALCRECT
|
DT_LEFT
|
DT_SINGLELINE
);
todo_wine
ok
(
textheight
,
"DrawTextA error %u
\n
"
,
GetLastError
());
ok
(
0
==
rect
.
left
,
"expected 0, got %d
\n
"
,
rect
.
left
);
ok
(
0
==
rect
.
right
,
"expected 0, got %d
\n
"
,
rect
.
right
);
ok
(
0
==
rect
.
top
,
"expected 0, got %d
\n
"
,
rect
.
top
);
todo_wine
ok
(
rect
.
bottom
,
"rect.bottom should not be 0
\n
"
);
SetRect
(
&
rect
,
0
,
0
,
0
,
0
);
textheight
=
DrawTextW
(
hdc
,
emptystringW
,
-
1
,
&
rect
,
DT_CALCRECT
|
DT_LEFT
|
DT_SINGLELINE
);
todo_wine
ok
(
textheight
,
"DrawTextW error %u
\n
"
,
GetLastError
());
ok
(
0
==
rect
.
left
,
"expected 0, got %d
\n
"
,
rect
.
left
);
ok
(
0
==
rect
.
right
,
"expected 0, got %d
\n
"
,
rect
.
right
);
ok
(
0
==
rect
.
top
,
"expected 0, got %d
\n
"
,
rect
.
top
);
todo_wine
ok
(
rect
.
bottom
,
"rect.bottom should not be 0
\n
"
);
SelectObject
(
hdc
,
hOldFont
);
ret
=
DeleteObject
(
hFont
);
ok
(
ret
,
"DeleteObject error %u
\n
"
,
GetLastError
());
...
...
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