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
d2d11419
Commit
d2d11419
authored
Oct 07, 2015
by
Jactry Zeng
Committed by
Alexandre Julliard
Oct 12, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Add tests for FlashWindow.
Signed-off-by:
Jactry Zeng
<
jzeng@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
af661084
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
win.c
dlls/user32/tests/win.c
+30
-0
No files found.
dlls/user32/tests/win.c
View file @
d2d11419
...
...
@@ -57,6 +57,7 @@ static int (WINAPI *pGetWindowRgnBox)(HWND,LPRECT);
static
BOOL
(
WINAPI
*
pGetGUIThreadInfo
)(
DWORD
,
GUITHREADINFO
*
);
static
BOOL
(
WINAPI
*
pGetProcessDefaultLayout
)(
DWORD
*
layout
);
static
BOOL
(
WINAPI
*
pSetProcessDefaultLayout
)(
DWORD
layout
);
static
BOOL
(
WINAPI
*
pFlashWindow
)(
HWND
hwnd
,
BOOL
bInvert
);
static
BOOL
(
WINAPI
*
pFlashWindowEx
)(
PFLASHWINFO
pfwi
);
static
DWORD
(
WINAPI
*
pSetLayout
)(
HDC
hdc
,
DWORD
layout
);
static
DWORD
(
WINAPI
*
pGetLayout
)(
HDC
hdc
);
...
...
@@ -7068,6 +7069,33 @@ static void test_rtl_layout(void)
DestroyWindow
(
parent
);
}
static
void
test_FlashWindow
(
void
)
{
HWND
hwnd
;
BOOL
ret
;
if
(
!
pFlashWindow
)
{
win_skip
(
"FlashWindow not supported
\n
"
);
return
;
}
hwnd
=
CreateWindowExA
(
0
,
"MainWindowClass"
,
"FlashWindow"
,
WS_POPUP
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
NULL
);
ok
(
hwnd
!=
0
,
"CreateWindowExA error %d
\n
"
,
GetLastError
()
);
SetLastError
(
0xdeadbeef
);
ret
=
pFlashWindow
(
NULL
,
TRUE
);
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"FlashWindow returned with %d
\n
"
,
GetLastError
()
);
DestroyWindow
(
hwnd
);
SetLastError
(
0xdeadbeef
);
ret
=
pFlashWindow
(
hwnd
,
TRUE
);
todo_wine
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"FlashWindow returned with %d
\n
"
,
GetLastError
()
);
}
static
void
test_FlashWindowEx
(
void
)
{
HWND
hwnd
;
...
...
@@ -8177,6 +8205,7 @@ START_TEST(win)
pGetGUIThreadInfo
=
(
void
*
)
GetProcAddress
(
user32
,
"GetGUIThreadInfo"
);
pGetProcessDefaultLayout
=
(
void
*
)
GetProcAddress
(
user32
,
"GetProcessDefaultLayout"
);
pSetProcessDefaultLayout
=
(
void
*
)
GetProcAddress
(
user32
,
"SetProcessDefaultLayout"
);
pFlashWindow
=
(
void
*
)
GetProcAddress
(
user32
,
"FlashWindow"
);
pFlashWindowEx
=
(
void
*
)
GetProcAddress
(
user32
,
"FlashWindowEx"
);
pGetLayout
=
(
void
*
)
GetProcAddress
(
gdi32
,
"GetLayout"
);
pSetLayout
=
(
void
*
)
GetProcAddress
(
gdi32
,
"SetLayout"
);
...
...
@@ -8240,6 +8269,7 @@ START_TEST(win)
test_capture_3
(
hwndMain
,
hwndMain2
);
test_capture_4
();
test_rtl_layout
();
test_FlashWindow
();
test_FlashWindowEx
();
test_CreateWindow
();
...
...
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