msctf/tests: Fix failures on Win7 and East-Asian machines

Greg Geldorp ggeldorp at vmware.com
Sat Jan 15 15:54:20 CST 2011


Most of the failures were due to Win7 firing multiple OnSetFocus events
while the tests only expected a single event. E.g. the test might expect a
single event with prev focus A and current focus B, where Win7 will fire
two events, first A -> NULL and then NULL -> B. This is handled by
collecting the events via SINK_SAVE and then checking the expected
prev/current after the function that caused the focus change completes.
There are also different behaviors depending on whether the test
executable runs in the foreground or not.

---
 dlls/msctf/tests/inputprocessor.c |  115
+++++++++++++++++++++++++++++-------
 1 files changed, 92 insertions(+), 23 deletions(-)



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-msctf-tests-Fix-failures-on-Win7-and-East-Asian-mach.patch
Type: text/x-patch
Size: 12175 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20110115/9df1c2cf/attachment-0001.bin>


More information about the wine-patches mailing list