Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3ac36cb5
Commit
3ac36cb5
authored
Oct 23, 2011
by
Thomas Faber
Committed by
Alexandre Julliard
Oct 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: Test format rect adaption to window size and behavior with zero-sized windows.
parent
791d000f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
editor.c
dlls/riched20/tests/editor.c
+43
-0
No files found.
dlls/riched20/tests/editor.c
View file @
3ac36cb5
...
...
@@ -6364,6 +6364,49 @@ static void test_format_rect(void)
rc
.
top
,
rc
.
left
,
rc
.
bottom
,
rc
.
right
,
expected
.
top
,
expected
.
left
,
expected
.
bottom
,
expected
.
right
);
/* Reset to default rect and check how the format rect adjusts to window
* resize and how it copes with very small windows */
SendMessageA
(
hwnd
,
EM_SETRECT
,
0
,
(
LPARAM
)
NULL
);
MoveWindow
(
hwnd
,
0
,
0
,
100
,
30
,
FALSE
);
GetClientRect
(
hwnd
,
&
clientRect
);
expected
=
clientRect
;
expected
.
left
+=
1
;
expected
.
right
-=
1
;
SendMessageA
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
ok
(
rc
.
top
==
expected
.
top
&&
rc
.
left
==
expected
.
left
&&
rc
.
bottom
==
expected
.
bottom
&&
rc
.
right
==
expected
.
right
,
"rect a(t=%d, l=%d, b=%d, r=%d) != e(t=%d, l=%d, b=%d, r=%d)
\n
"
,
rc
.
top
,
rc
.
left
,
rc
.
bottom
,
rc
.
right
,
expected
.
top
,
expected
.
left
,
expected
.
bottom
,
expected
.
right
);
MoveWindow
(
hwnd
,
0
,
0
,
0
,
30
,
FALSE
);
GetClientRect
(
hwnd
,
&
clientRect
);
expected
=
clientRect
;
expected
.
left
+=
1
;
expected
.
right
-=
1
;
SendMessageA
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
ok
(
rc
.
top
==
expected
.
top
&&
rc
.
left
==
expected
.
left
&&
rc
.
bottom
==
expected
.
bottom
&&
rc
.
right
==
expected
.
right
,
"rect a(t=%d, l=%d, b=%d, r=%d) != e(t=%d, l=%d, b=%d, r=%d)
\n
"
,
rc
.
top
,
rc
.
left
,
rc
.
bottom
,
rc
.
right
,
expected
.
top
,
expected
.
left
,
expected
.
bottom
,
expected
.
right
);
MoveWindow
(
hwnd
,
0
,
0
,
100
,
0
,
FALSE
);
GetClientRect
(
hwnd
,
&
clientRect
);
expected
=
clientRect
;
expected
.
left
+=
1
;
expected
.
right
-=
1
;
SendMessageA
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
ok
(
rc
.
top
==
expected
.
top
&&
rc
.
left
==
expected
.
left
&&
rc
.
bottom
==
expected
.
bottom
&&
rc
.
right
==
expected
.
right
,
"rect a(t=%d, l=%d, b=%d, r=%d) != e(t=%d, l=%d, b=%d, r=%d)
\n
"
,
rc
.
top
,
rc
.
left
,
rc
.
bottom
,
rc
.
right
,
expected
.
top
,
expected
.
left
,
expected
.
bottom
,
expected
.
right
);
DestroyWindow
(
hwnd
);
/* The extended window style affects the formatting rectangle. */
...
...
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