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
d137a95f
Commit
d137a95f
authored
Sep 29, 2014
by
Piotr Caban
Committed by
Alexandre Julliard
Sep 29, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Add initial WindowFromPoint tests.
parent
ddeab7e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
win.c
dlls/user32/tests/win.c
+39
-0
No files found.
dlls/user32/tests/win.c
View file @
d137a95f
...
...
@@ -7200,6 +7200,44 @@ todo_wine
ok
(
ret
,
"UnregisterClass(my_window) failed
\n
"
);
}
static
void
test_window_from_point
(
void
)
{
HWND
hwnd
,
child
,
win
;
POINT
pt
;
hwnd
=
CreateWindowExA
(
0
,
"MainWindowClass"
,
NULL
,
WS_POPUP
|
WS_VISIBLE
,
100
,
100
,
200
,
100
,
0
,
0
,
NULL
,
NULL
);
ok
(
hwnd
!=
0
,
"CreateWindowEx failed
\n
"
);
pt
.
x
=
pt
.
y
=
150
;
win
=
WindowFromPoint
(
pt
);
pt
.
x
=
250
;
if
(
win
==
hwnd
)
win
=
WindowFromPoint
(
pt
);
if
(
win
!=
hwnd
)
{
skip
(
"there's another window covering test window
\n
"
);
DestroyWindow
(
hwnd
);
return
;
}
child
=
CreateWindowExA
(
0
,
"static"
,
"static"
,
WS_CHILD
|
WS_VISIBLE
,
0
,
0
,
100
,
100
,
hwnd
,
0
,
NULL
,
NULL
);
ok
(
child
!=
0
,
"CreateWindowEx failed
\n
"
);
pt
.
x
=
pt
.
y
=
150
;
win
=
WindowFromPoint
(
pt
);
ok
(
win
==
hwnd
,
"WindowFromPoint returned %p, expected %p
\n
"
,
win
,
hwnd
);
DestroyWindow
(
child
);
child
=
CreateWindowExA
(
0
,
"button"
,
"button"
,
WS_CHILD
|
WS_VISIBLE
,
0
,
0
,
100
,
100
,
hwnd
,
0
,
NULL
,
NULL
);
ok
(
child
!=
0
,
"CreateWindowEx failed
\n
"
);
win
=
WindowFromPoint
(
pt
);
ok
(
win
==
child
,
"WindowFromPoint returned %p, expected %p
\n
"
,
win
,
child
);
DestroyWindow
(
child
);
DestroyWindow
(
hwnd
);
}
static
void
test_map_points
(
void
)
{
BOOL
ret
;
...
...
@@ -7745,6 +7783,7 @@ START_TEST(win)
/* Add the tests below this line */
test_child_window_from_point
();
test_window_from_point
();
test_thick_child_size
(
hwndMain
);
test_fullscreen
();
test_hwnd_message
();
...
...
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