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
53160b60
Commit
53160b60
authored
Oct 03, 2008
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Print the expected and received rectangles.
parent
4bf5c5f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
win.c
dlls/user32/tests/win.c
+18
-6
No files found.
dlls/user32/tests/win.c
View file @
53160b60
...
...
@@ -4365,7 +4365,9 @@ static void test_ShowWindow(void)
ok
(
!
(
style
&
WS_MINIMIZE
),
"window should not be minimized
\n
"
);
ok
(
!
(
style
&
WS_MAXIMIZE
),
"window should not be maximized
\n
"
);
GetWindowRect
(
hwnd
,
&
rc
);
ok
(
EqualRect
(
&
rcMain
,
&
rc
),
"rects should match
\n
"
);
ok
(
EqualRect
(
&
rcMain
,
&
rc
),
"expected (%d,%d)-(%d,%d), got (%d,%d)-(%d,%d)
\n
"
,
rcMain
.
left
,
rcMain
.
top
,
rcMain
.
right
,
rcMain
.
bottom
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
ret
=
ShowWindow
(
hwnd
,
SW_SHOW
);
ok
(
!
ret
,
"not expected ret: %lu
\n
"
,
ret
);
...
...
@@ -4375,7 +4377,9 @@ static void test_ShowWindow(void)
ok
(
!
(
style
&
WS_MINIMIZE
),
"window should not be minimized
\n
"
);
ok
(
!
(
style
&
WS_MAXIMIZE
),
"window should not be maximized
\n
"
);
GetWindowRect
(
hwnd
,
&
rc
);
ok
(
EqualRect
(
&
rcMain
,
&
rc
),
"rects should match
\n
"
);
ok
(
EqualRect
(
&
rcMain
,
&
rc
),
"expected (%d,%d)-(%d,%d), got (%d,%d)-(%d,%d)
\n
"
,
rcMain
.
left
,
rcMain
.
top
,
rcMain
.
right
,
rcMain
.
bottom
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
ret
=
ShowWindow
(
hwnd
,
SW_MINIMIZE
);
ok
(
ret
,
"not expected ret: %lu
\n
"
,
ret
);
...
...
@@ -4395,7 +4399,9 @@ static void test_ShowWindow(void)
ok
(
!
(
style
&
WS_MINIMIZE
),
"window should not be minimized
\n
"
);
ok
(
!
(
style
&
WS_MAXIMIZE
),
"window should not be maximized
\n
"
);
GetWindowRect
(
hwnd
,
&
rc
);
ok
(
EqualRect
(
&
rcMain
,
&
rc
),
"rects should match
\n
"
);
ok
(
EqualRect
(
&
rcMain
,
&
rc
),
"expected (%d,%d)-(%d,%d), got (%d,%d)-(%d,%d)
\n
"
,
rcMain
.
left
,
rcMain
.
top
,
rcMain
.
right
,
rcMain
.
bottom
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
ret
=
EnableWindow
(
hwnd
,
FALSE
);
ok
(
!
ret
,
"not expected ret: %lu
\n
"
,
ret
);
...
...
@@ -4410,7 +4416,9 @@ static void test_ShowWindow(void)
ok
(
!
(
style
&
WS_MINIMIZE
),
"window should not be minimized
\n
"
);
ok
(
!
(
style
&
WS_MAXIMIZE
),
"window should not be maximized
\n
"
);
GetWindowRect
(
hwnd
,
&
rc
);
ok
(
EqualRect
(
&
rcMain
,
&
rc
),
"rects should match
\n
"
);
ok
(
EqualRect
(
&
rcMain
,
&
rc
),
"expected (%d,%d)-(%d,%d), got (%d,%d)-(%d,%d)
\n
"
,
rcMain
.
left
,
rcMain
.
top
,
rcMain
.
right
,
rcMain
.
bottom
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
ret
=
DefWindowProc
(
hwnd
,
WM_SYSCOMMAND
,
SC_MAXIMIZE
,
0
);
ok
(
!
ret
,
"not expected ret: %lu
\n
"
,
ret
);
...
...
@@ -4420,7 +4428,9 @@ static void test_ShowWindow(void)
ok
(
!
(
style
&
WS_MINIMIZE
),
"window should not be minimized
\n
"
);
ok
(
!
(
style
&
WS_MAXIMIZE
),
"window should not be maximized
\n
"
);
GetWindowRect
(
hwnd
,
&
rc
);
ok
(
EqualRect
(
&
rcMain
,
&
rc
),
"rects should match
\n
"
);
ok
(
EqualRect
(
&
rcMain
,
&
rc
),
"expected (%d,%d)-(%d,%d), got (%d,%d)-(%d,%d)
\n
"
,
rcMain
.
left
,
rcMain
.
top
,
rcMain
.
right
,
rcMain
.
bottom
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
ret
=
ShowWindow
(
hwnd
,
SW_MINIMIZE
);
ok
(
ret
,
"not expected ret: %lu
\n
"
,
ret
);
...
...
@@ -4450,7 +4460,9 @@ static void test_ShowWindow(void)
ok
(
!
(
style
&
WS_MINIMIZE
),
"window should not be minimized
\n
"
);
ok
(
!
(
style
&
WS_MAXIMIZE
),
"window should not be maximized
\n
"
);
GetWindowRect
(
hwnd
,
&
rc
);
ok
(
EqualRect
(
&
rcMain
,
&
rc
),
"rects should match
\n
"
);
ok
(
EqualRect
(
&
rcMain
,
&
rc
),
"expected (%d,%d)-(%d,%d), got (%d,%d)-(%d,%d)
\n
"
,
rcMain
.
left
,
rcMain
.
top
,
rcMain
.
right
,
rcMain
.
bottom
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
ret
=
DefWindowProc
(
hwnd
,
WM_SYSCOMMAND
,
SC_CLOSE
,
0
);
ok
(
!
ret
,
"not expected ret: %lu
\n
"
,
ret
);
...
...
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