[1/5] user32: Added tests for DrawIcon and DrawIconEx
r.kalbermatter at hccnet.nl
Sat Jun 6 04:40:28 CDT 2009
Joel Holdsworth [mailto:joel at airwebreathe.org.uk]
> However, you're saying GetVersion is a problem. Why is that?
> And how else is one supposed to cope with GdiAlphaBlend not
> being present in pre-XP systems, as well as old-style
> dithering differences?
Wine tests try to not depend on a particular OS version but instead cope
with differences in APIs directly. For new APIs not present in earlier
OSes this is simple. You need to import them dynamically anyhow in order
to not cause the entire test module load to fail on older OS versions.
It is then simple to test for a valid function pointer from GetProcAddress()
und skip all relevant tests if this is not the case.
Other differences should probably be handled by allowing either result to
be valid and considered as a success for that particular operation. Same
as with testing error return values for instance where sometimes a range
of error codes is accepted as valid result.
More information about the wine-devel