user32/tests: Properly flush events in the update rect tests.

This commit is contained in:
Alexandre Julliard 2007-09-17 14:13:37 +02:00
parent f19086e9d3
commit 9c27ed21a2
1 changed files with 2 additions and 0 deletions

View File

@ -4229,6 +4229,7 @@ static void test_GetUpdateRect(void)
ShowWindow(hgrandparent, SW_SHOW);
UpdateWindow(hgrandparent);
flush_events();
ShowWindow(hchild, SW_HIDE);
SetRect(&rc2, 0, 0, 0, 0);
@ -4288,6 +4289,7 @@ static void test_GetUpdateRect(void)
ShowWindow(hgrandparent, SW_SHOW);
UpdateWindow(hgrandparent);
flush_events();
ret = GetUpdateRect(hgrandparent, &rc1, FALSE);
ok(!ret, "GetUpdateRect returned not empty region\n");