Commit Graph

49 Commits

Author SHA1 Message Date
Rein Klazes d4c62162e9 user: Fix SPI_{G|S}ETFONTSMOOTHING with tests. 2006-01-27 19:19:19 +01:00
Rein Klazes 13b9923165 user32: Implement saving and fix reading of nonclient metrics.
With conformance tests.
2005-12-16 12:38:06 +01:00
Rein Klazes 105450db4a user: Read/save minimized metrics from/to registry. 2005-12-14 12:27:39 +01:00
Francois Gouget 6d442aeb34 Assorted spelling fixes. 2005-11-23 20:14:43 +01:00
Rein Klazes 168e0db02c Make test_SPI_SETBORDER less likely to permanently change visual
settings:
- use smaller border widths values for testing;
- provide a work around for a Windows XP feature that made the tests
  change the caption width.
2005-11-23 15:19:04 +01:00
Rein Klazes 6154b46bef GetSystemMetrics fixes with corresponding tests. 2005-11-22 14:56:11 +00:00
Rein Klazes 8f3b9d506b Fix SysparametersInfoA( SPI_SETICONMETRICS), the A<->W conversion was
rather broken.
Make the SPI_{G|S}ETICONMETRICS functions more consistent with those
for SPI_ICON{HORIZONTAL|VERTICAL}SPACING, SPI_{G|S}ICONTITLEWRAP and
SPI_{G|S}ICONTITLELOGFONT.
Accordingly extend the corresponding tests.
2005-11-14 15:12:14 +00:00
Rein Klazes 7e6b325929 Re-enable SPI_{GET,SET}BORDER tests and fix the bugs that caused them
to be disabled.
Add tests that show that the border value manipulated by
SPI_{GET,SET}BORDER is completely the same as with
SPI_{GET,SET}NONCLIENTMETRICS.
Fix a few signed/unsigned warnings in unrelated tests from the same
source file.
Made the tests pass on wine.
2005-11-08 19:58:37 +00:00
Vitaly Lipatov a4590d2b23 - remove return: now break loop if can't change state during test
- add test for value returned by SwapMouseButton
- fix SwapMouseButton return value (it returns previous state)
2005-08-25 19:18:49 +00:00
Mike McCormack d7b9a23afd gcc 4.0 -Wpointer-sign fixes (Reg* functions). 2005-07-06 19:08:05 +00:00
Alexandre Julliard a2b2456b99 Revert SPI_SETMOUSEBUTTONSWAP changes. 2005-06-30 18:14:14 +00:00
Vitaly Lipatov 0624e17e7e Fix returned value for SPI_SETMOUSEBUTTONSWAP. 2005-06-20 15:36:17 +00:00
Mike McCormack f674f1f71b Fix declarations. 2005-06-15 10:20:53 +00:00
Francois Gouget 93416cdaf7 Assorted spelling fixes. 2005-03-23 13:15:18 +00:00
Alexandre Julliard 9bcdd7ca19 Authors: Justin Chevrier <jchevrier@nexicom.net>, Paul Vriens <Paul.Vriens@xs4all.nl>
- Consolidate error message handling.
- Add error checking to all initial SystemParametersInfoA calls in
  each parameter test to make sure that if a given parameter isn't
  supported or has failed in some other way that we return and don't
  continue on with the test.
- SetLastError before calling test_error_msg.
- SPI_{GET,SET}ICONTITLEWRAP is supported on Win98.
2005-03-07 19:23:32 +00:00
Paul Vriens ae5e9edef7 LastError is not set on failure for *MOUSEHOVER* on Win98. 2005-03-05 10:47:30 +00:00
Justin Chevrier dd170db028 Expand conformance registry entry test to handle registry entries that
differ both in Key and Value from the norm.
Take advantage of expanded registry test to allow
SPI_{GET,SET}SCREENREADER and SPI_{GET,SET}KEYBOARDPREFERENCE to pass
on Win9x.
2005-03-04 12:31:09 +00:00
Paul Vriens 726df300ad Better way of handling non-existent SystemParametersInfoW.
SetLastError if GetLastError is checked after a call.
2005-03-04 10:46:22 +00:00
Francois Gouget fbb3343547 Assorted spelling fixes. 2005-03-02 13:53:50 +00:00
Justin Chevrier 74b36359f1 - Created SPI_{GET,SET}KEYBOARDPREF and SPI_{GET,SET}SCREENREADER unit
tests.
- Removed a trace that shouldn't have been there.
- Add return checking to SPI_{GET,SET}WHEELSCROLLLINES and
  SPI_{GET,SET}MENUSHOWDELAY unit tests so they no longer run on
  Windows 95 where they aren't supported.
- Changed minimum hovertime in SPI_{GET,SET}MOUSEHOVERTIME to 10 as
  Windows XP defaults to 10 any value below that.
2005-03-01 11:46:11 +00:00
Justin Chevrier 564aceddca - Implement SPI_{GET,SET}POWEROFFACTIVE and SPI_SETLOWPOWERACTIVE.
- Corrected SPI_GETLOWPOWERACTIVE to use an index (instead of its SPI
  value) to avoid an out of bounds condition.
- Created unit tests for SPI_{GET,SET}POWEROFFACTIVE and
  SPI_{GET,SET)SETLOWPOWERACTIVE.
2005-02-21 20:40:44 +00:00
Paul Vriens e3e89294d9 Extra tracing for SPI_GETICONTITLEWRAP. 2005-02-08 12:09:07 +00:00
Paul Vriens 0cdfbd7669 Check for availability of SPI_GETICONTITLEWRAP. 2005-01-27 11:11:10 +00:00
Justin Chevrier 3582a175c5 - Implemented SPI_SETICONMETRICS.
- Fixed SPI_GETICONTITLELOGFONT to only return values retrieved from
  win.ini on first call and return a cached version in subsequent
  calls.
- Created unit test for SPI_{GET,SET}ICONMETRICS.
2005-01-20 20:43:02 +00:00
Justin Chevrier f44d0692f1 Created unit test for SPI_{GET,SET}MINIMIZEDMETRICS. 2005-01-14 16:49:33 +00:00
Francois Gouget 9806c99033 Define _WIN32_WINNT otherwise we are missing some definitions with the
Windows headers.
2004-08-11 18:50:40 +00:00
Hans Leidekker dbb3e14748 Fix signed/unsigned comparison warnings. 2004-08-09 18:52:18 +00:00
Dimitrie O. Paun 6d53c65048 Win 2000, XP, etc. fail the sysparams tests when run
non-interactively, so avoid running the tests in that case.
2004-06-04 19:36:43 +00:00
Justin Chevrier 7e997ef081 Implemented SPI{GET,SET}MOUSEHOVERWIDTH, SPI{GET,SET}MOUSEHOVERHEIGHT,
SPI{GET,SET}MOUSEHOVERTIME, SPI{GET,SET}MOUSESCROLLLINES,
SPI{GET,SET}MENUSHOWDELAY.
2004-03-19 01:16:12 +00:00
Francois Gouget 47e116225a Add trailing '\n's to ok() calls. 2004-01-23 20:50:35 +00:00
Daniel Marmier 0348649853 Fixed warnings with gcc option "-Wwrite-strings". 2003-10-06 21:03:32 +00:00
Francois Gouget 68ea3623b8 Modify winetest_ok to only add a trailing '\n' if there is none.
Modify macros in the kernel, oleaut32 and user tests to print a '\n'.
2003-09-11 01:07:19 +00:00
Alexandre Julliard cf52644a1c Removed the A/W constants for builtin cursors, icons and resource
types since they don't exist on Windows, and added typecasts
everywhere instead.
2003-09-10 03:56:47 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Richard Cohen 92e0a05749 SystemParametersInfo returning a value for Wallpaper does not mean
that the registry key exists.
2003-08-07 02:57:15 +00:00
Alexandre Julliard 74a66ff99d Avoid warning. 2003-04-08 00:56:32 +00:00
Francois Gouget acc5e9bba1 Check for sysparams keys in either the Win9x or NT locations. This
makes the test succeed on Win9x and NT4 platforms.
Add a 'strict' mode which specifically makes sure that the NT location
is set. In strict mode the test succeeds on Windows XP and Wine.
2003-01-20 23:30:22 +00:00
Francois Gouget a4c90cff02 Don't use old_spacing-1 if old_spacing already has the minimum value. 2003-01-16 00:19:24 +00:00
Francois Gouget 6fed1e3738 Update the registry keys of SPI_ICONHORIZONTALSPACING,
SPI_ICONVERTICALSPACING and SPI_SETICONTITLEWRAP to match XP.
The SPI_SETBORDER test leaves an incorect border setting and is just
too erratic: comment it out for now.
Modified the SPI_ICONHORIZONTALSPACING, SPI_ICONVERTICALSPACING and
SPI_SETWORKAREA to not cause the icons to be reorganized.
Don't test out-of-bound values for SPI_SETKEYBOARDSPEED as behavior
differs accross Windows platforms.
On Win9x the maximum value for SPI_SETSCREENSAVETIMEOUT is 32767.
The registry keys and values stored in them for
SPI_ICONHORIZONTALSPACING and SPI_ICONVERTICALSPACING depend on the
Windows platform: ignore them.
No Windows platform seems to SPI_SETFASTTASKSWITCH: no longer test it.
The lParam of WM_SETTINGCHANGE is quite useless (even the MSDN says
so!) and varies accross Windows platforms. Ignore it.
Always check the SystemParametersInfoA return code as it fails in very
strange ways on some platforms. Skip unsupported settings.
Skip Unicode tests on platforms that don't support it.
2003-01-13 20:40:22 +00:00
Dan Kegel 0fd521fee3 Change RECT to use LONG to match win32 standard headers and fix format
strings to use %ld for RECT elements.
2003-01-08 21:09:25 +00:00
Francois Gouget ecf2c570d2 Fix signed/unsigned compilation warnings. 2003-01-05 01:02:57 +00:00
Patrik Stridvall fc832f0fcf Fixed tests to compile with MS C on Windows. 2002-10-29 21:24:35 +00:00
Philipp Wollermann a32dc91711 Implemented SPI_GETDESKWALLPAPER action, fixed SPI_SETDESKWALLPAPER. 2002-06-28 23:27:37 +00:00
Vincent Béron 9a62491660 Removed trailing whitespace. 2002-05-31 23:06:46 +00:00
Francois Gouget ea668d1be1 Make the 'error' string of a couple of checks consistent with the
others.
2002-05-19 22:22:06 +00:00
François Gouget ffb6d763f4 Include wine/test.h before windows headers.
Add definitions for IDI_APPLICATIONA and IDC_ARROWA for Windows.
Fix a check in the SPI_{GET,SET}BORDER test.
Fix bad copy/paste in the SPI_{GET,SET}BORDER test.
Use eq macro to print values when something goes wrong.
2002-04-02 00:44:51 +00:00
Francois Gouget 902540cf0b Don't show the window. 2002-03-19 02:03:17 +00:00
Alexandre Julliard 0799c1a780 Added LGPL standard comment, and copyright notices where necessary.
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Andriy Palamarchuk 812bc5298b Added SystemParametersInfo unit test. 2002-02-27 21:32:18 +00:00