Commit a1d54447 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

comctl32/tests: Skip the hover tests if the listview's parent is not the foreground window.

parent fd806a65
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment