mirror of
https://github.com/reactos/reactos.git
synced 2025-06-09 11:20:39 +00:00
[USER32_WINETEST]
- Apply a different hack to make Jim happy. - If you revert any of this and your changes break tests on Windows, I will revert your revert. svn path=/trunk/; revision=66466
This commit is contained in:
parent
f63b100488
commit
04bcefa076
1 changed files with 11 additions and 2 deletions
|
@ -14728,12 +14728,21 @@ START_TEST(msg_messages)
|
||||||
START_TEST(msg_focus)
|
START_TEST(msg_focus)
|
||||||
{
|
{
|
||||||
init_tests();
|
init_tests();
|
||||||
|
|
||||||
test_SetFocus();
|
test_SetFocus();
|
||||||
|
|
||||||
|
/* HACK: For some reason the tests fail on Windows if run consecutively.
|
||||||
|
* Putting these in between helps, and is essentially what happens in the
|
||||||
|
* "normal" msg test. */
|
||||||
|
keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, 0);
|
||||||
|
flush_events();
|
||||||
|
|
||||||
test_SetActiveWindow();
|
test_SetActiveWindow();
|
||||||
|
|
||||||
/* HACK: For some reason test_SetForegroundWindow fails on Windows unless
|
/* HACK */
|
||||||
* we do this */
|
|
||||||
keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, 0);
|
keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, 0);
|
||||||
|
flush_events();
|
||||||
|
|
||||||
/* keep it the last test, under Windows it tends to break the tests
|
/* keep it the last test, under Windows it tends to break the tests
|
||||||
* which rely on active/foreground windows being correct.
|
* which rely on active/foreground windows being correct.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue