DescriptionReenabling the disabled DestroyInSysCommandNCLButtonDownOnCaption and SysCommandMoveOnNCLButtonDownOnCaptionAndMoveTest tests
I was able to get these tests to fail if the mouse was anywhere in the vicinity of the window. The tests were calling the
SetCursorPos API to avoid this. I guess it could happen if other tests on the bot via the shard end up moving the
cursor.
The fix is to peek out the messages pending in the queue after the window is visible. Generally Windows posts a WM_MOUSEMOVE
message when a window becomes visible to allow it to set the cursor. Perhaps this is what is tripping us up.
Removed the SetCursorPos call.
BUG=592742
Patch Set 1 #
Depends on Patchset: Messages
Total messages: 3 (1 generated)
|