USER32: fix LB_ITEMFROMPOINT tests for listbox control
Alex Villacís Lasso
a_villacis at palosanto.com
Wed Nov 7 09:34:55 CST 2007
This test depends on particular items of the listbox display being
displayed at particular pixel positions. These assumptions may fail for
different font sizes. The (unexpected) caption that appears on WinXP
also causes trouble. Furthermore, the test wants to check behavior of a
partially-visible item, but the listbox uses a height which is an
integer multiple of the item vertical size, unless LB_NOINTEGRALHEIGHT
is specified. The patch attached fixes four test failures on WinXP (and
possibly also on Win98).
Changelog:
* Fix failing test in WinXP-SP2 by resizing control and using WS_POPUP and
LBS_NOINTEGRALHEIGHT to enforce assertions used inside the test.
--
perl -e '$x=2.4;print sprintf("%.0f + %.0f = %.0f\n",$x,$x,$x+$x);'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-user32-tests-itemfrompoint-fix.patch
Type: text/x-patch
Size: 1486 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071107/51f693a4/attachment.bin
More information about the wine-patches
mailing list