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
91b09e0c
Commit
91b09e0c
authored
Nov 13, 2017
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Separate WS_EX_TOPMOST tests from SetWindowPos ones.
Signed-off-by:
Dmitry Timoshkov
<
dmitry@baikal.ru
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
825d2337
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
+17
-11
win.c
dlls/user32/tests/win.c
+17
-11
No files found.
dlls/user32/tests/win.c
View file @
91b09e0c
...
@@ -2573,17 +2573,6 @@ static void test_SetWindowPos(HWND hwnd, HWND hwnd2)
...
@@ -2573,17 +2573,6 @@ static void test_SetWindowPos(HWND hwnd, HWND hwnd2)
orig_win_rc
.
right
,
orig_win_rc
.
bottom
,
0
);
orig_win_rc
.
right
,
orig_win_rc
.
bottom
,
0
);
ok
(
ret
,
"Got %d
\n
"
,
ret
);
ok
(
ret
,
"Got %d
\n
"
,
ret
);
ok
(
!
(
GetWindowLongA
(
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_TOPMOST
),
"WS_EX_TOPMOST should not be set
\n
"
);
ret
=
SetWindowPos
(
hwnd
,
HWND_TOPMOST
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
);
ok
(
ret
,
"Got %d
\n
"
,
ret
);
ok
(
GetWindowLongA
(
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_TOPMOST
,
"WS_EX_TOPMOST should be set
\n
"
);
ret
=
SetWindowPos
(
hwnd
,
HWND_TOP
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
);
ok
(
ret
,
"Got %d
\n
"
,
ret
);
ok
(
GetWindowLongA
(
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_TOPMOST
,
"WS_EX_TOPMOST should be set
\n
"
);
ret
=
SetWindowPos
(
hwnd
,
HWND_NOTOPMOST
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
);
ok
(
ret
,
"Got %d
\n
"
,
ret
);
ok
(
!
(
GetWindowLongA
(
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_TOPMOST
),
"WS_EX_TOPMOST should not be set
\n
"
);
hwnd_desktop
=
GetDesktopWindow
();
hwnd_desktop
=
GetDesktopWindow
();
ok
(
!!
hwnd_desktop
,
"Failed to get hwnd_desktop window (%d).
\n
"
,
GetLastError
());
ok
(
!!
hwnd_desktop
,
"Failed to get hwnd_desktop window (%d).
\n
"
,
GetLastError
());
hwnd_child
=
create_tool_window
(
WS_VISIBLE
|
WS_CHILD
,
hwnd
);
hwnd_child
=
create_tool_window
(
WS_VISIBLE
|
WS_CHILD
,
hwnd
);
...
@@ -9867,6 +9856,22 @@ static void test_desktop( void )
...
@@ -9867,6 +9856,22 @@ static void test_desktop( void )
}
}
}
}
static
void
test_topmost
(
HWND
hwnd
)
{
BOOL
ret
;
ok
(
!
(
GetWindowLongA
(
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_TOPMOST
),
"WS_EX_TOPMOST should not be set
\n
"
);
ret
=
SetWindowPos
(
hwnd
,
HWND_TOPMOST
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
);
ok
(
ret
,
"Got %d
\n
"
,
ret
);
ok
(
GetWindowLongA
(
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_TOPMOST
,
"WS_EX_TOPMOST should be set
\n
"
);
ret
=
SetWindowPos
(
hwnd
,
HWND_TOP
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
);
ok
(
ret
,
"Got %d
\n
"
,
ret
);
ok
(
GetWindowLongA
(
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_TOPMOST
,
"WS_EX_TOPMOST should be set
\n
"
);
ret
=
SetWindowPos
(
hwnd
,
HWND_NOTOPMOST
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
);
ok
(
ret
,
"Got %d
\n
"
,
ret
);
ok
(
!
(
GetWindowLongA
(
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_TOPMOST
),
"WS_EX_TOPMOST should not be set
\n
"
);
}
START_TEST
(
win
)
START_TEST
(
win
)
{
{
char
**
argv
;
char
**
argv
;
...
@@ -9944,6 +9949,7 @@ START_TEST(win)
...
@@ -9944,6 +9949,7 @@ START_TEST(win)
our_pid
=
GetWindowThreadProcessId
(
hwndMain
,
NULL
);
our_pid
=
GetWindowThreadProcessId
(
hwndMain
,
NULL
);
/* Add the tests below this line */
/* Add the tests below this line */
test_topmost
(
hwndMain
);
test_child_window_from_point
();
test_child_window_from_point
();
test_window_from_point
(
argv
[
0
]);
test_window_from_point
(
argv
[
0
]);
test_thick_child_size
(
hwndMain
);
test_thick_child_size
(
hwndMain
);
...
...
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