Author: tfaber
Date: Thu Feb 26 09:25:58 2015
New Revision: 66466
URL:
http://svn.reactos.org/svn/reactos?rev=66466&view=rev
Log:
[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.
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] Thu Feb 26 09:25:58 2015
@@ -14728,12 +14728,21 @@
START_TEST(msg_focus)
{
init_tests();
+
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();
- /* HACK: For some reason test_SetForegroundWindow fails on Windows unless
- * we do this */
+ /* HACK */
keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, 0);
+ flush_events();
+
/* keep it the last test, under Windows it tends to break the tests
* which rely on active/foreground windows being correct.
*/