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

This commit is contained in:
Huw Davies 2015-05-21 11:51:50 +01:00 committed by Alexandre Julliard
parent fd806a65a5
commit a1d54447b8

View file

@ -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);