Huw Davies : comctl32/tests: Skip the hover tests if the listview' s parent is not the foreground window.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu May 21 07:24:24 CDT 2015
Module: wine
Branch: master
Commit: a1d54447b8290e8e7c666a14bc6c23d481e2b716
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a1d54447b8290e8e7c666a14bc6c23d481e2b716
Author: Huw Davies <huw at codeweavers.com>
Date: Thu May 21 11:51:50 2015 +0100
comctl32/tests: Skip the hover tests if the listview's parent is not the foreground window.
---
dlls/comctl32/tests/listview.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index a165100..3edb25a 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -5178,10 +5178,18 @@ static void test_LVS_EX_HEADERINALLVIEWS(void)
static void test_hover(void)
{
- HWND hwnd;
+ HWND hwnd, fg;
DWORD r;
hwnd = create_listview_control(LVS_ICON);
+ SetForegroundWindow(hwndparent);
+ fg = GetForegroundWindow();
+ if (fg != hwndparent)
+ {
+ skip("Window is not in the foreground. Skipping hover tests.\n");
+ DestroyWindow(hwnd);
+ return;
+ }
/* test WM_MOUSEHOVER forwarding */
flush_sequences(sequences, NUM_MSG_SEQUENCES);
More information about the wine-cvs
mailing list