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
b422c4b8
Commit
b422c4b8
authored
Nov 19, 2008
by
Florian Köberle
Committed by
Alexandre Julliard
Nov 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Capture tests should not require no active window.
parent
495fcc72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
win.c
dlls/user32/tests/win.c
+10
-5
No files found.
dlls/user32/tests/win.c
View file @
b422c4b8
...
...
@@ -2458,7 +2458,10 @@ static LRESULT WINAPI button_hook_proc(HWND button, UINT msg, WPARAM wparam, LPA
static
void
test_capture_1
(
void
)
{
HWND
button
,
capture
;
HWND
button
,
capture
,
oldFocus
,
oldActive
;
oldFocus
=
GetFocus
();
oldActive
=
GetActiveWindow
();
capture
=
GetCapture
();
ok
(
capture
==
0
,
"GetCapture() = %p
\n
"
,
capture
);
...
...
@@ -2476,14 +2479,16 @@ static void test_capture_1(void)
check_wnd_state
(
button
,
0
,
button
,
button
);
DestroyWindow
(
button
);
check_wnd_state
(
0
,
0
,
0
,
0
);
check_wnd_state
(
oldActive
,
0
,
oldFocus
,
0
);
}
static
void
test_capture_2
(
void
)
{
HWND
button
,
hwnd
,
capture
;
HWND
button
,
hwnd
,
capture
,
oldFocus
,
oldActive
;
check_wnd_state
(
0
,
0
,
0
,
0
);
oldFocus
=
GetFocus
();
oldActive
=
GetActiveWindow
();
check_wnd_state
(
oldActive
,
0
,
oldFocus
,
0
);
button
=
CreateWindowExA
(
0
,
"button"
,
NULL
,
WS_POPUP
|
WS_VISIBLE
,
0
,
0
,
10
,
10
,
0
,
0
,
0
,
NULL
);
assert
(
button
);
...
...
@@ -2533,7 +2538,7 @@ static void test_capture_2(void)
check_wnd_state
(
button
,
button
,
button
,
0
);
DestroyWindow
(
button
);
check_wnd_state
(
0
,
0
,
0
,
0
);
check_wnd_state
(
oldActive
,
0
,
oldFocus
,
0
);
}
static
void
test_capture_3
(
HWND
hwnd1
,
HWND
hwnd2
)
...
...
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