comctl32/tests: Skip the hover tests if the listview's parent is not the foreground window.
Huw Davies
huw at codeweavers.com
Thu May 21 05:51:50 CDT 2015
---
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);
--
1.8.0
More information about the wine-patches
mailing list