Author: tfaber
Date: Wed Feb 25 17:31:53 2015
New Revision: 66456
URL: http://svn.reactos.org/svn/reactos?rev=66456&view=rev
Log:
[USER32_WINETEST]
- Apply hacks to make the tests succeed on Windows
Modified:
trunk/rostests/winetests/user32/msg.c
Modified: trunk/rostests/winetests/user32/msg.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/user32/msg.c?re…
==============================================================================
--- trunk/rostests/winetests/user32/msg.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/user32/msg.c [iso-8859-1] Wed Feb 25 17:31:53 2015
@@ -14717,9 +14717,12 @@
START_TEST(msg_focus)
{
init_tests();
+ test_SetActiveWindow();
test_SetFocus();
- test_SetActiveWindow();
-
+
+ /* HACK: For some reason test_SetForegroundWindow fails on Windows unless
+ * we do this */
+ keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, 0);
/* keep it the last test, under Windows it tends to break the tests
* which rely on active/foreground windows being correct.
*/