Author: gadamopoulos
Date: Tue Jan 31 10:49:44 2012
New Revision: 55349
URL:
http://svn.reactos.org/svn/reactos?rev=55349&view=rev
Log:
[user32_apitest]
- Add some more tests
Modified:
trunk/rostests/apitests/user32/SystemParametersInfo.c
Modified: trunk/rostests/apitests/user32/SystemParametersInfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/user32/SystemPar…
==============================================================================
--- trunk/rostests/apitests/user32/SystemParametersInfo.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/user32/SystemParametersInfo.c [iso-8859-1] Tue Jan 31 10:49:44
2012
@@ -150,6 +150,27 @@
ok(ret, "SystemParametersInfo failed\n");
ok(temp == 1, "SPI_GETMOUSESPEED did not get value set by SPI_SETMOUSESPEED (%d
instead of 1)\n", (int)temp);
+ temp = 20;
+ ret = SystemParametersInfo(SPI_SETMOUSESPEED, 0, (PVOID)temp, SPIF_SENDCHANGE |
SPIF_UPDATEINIFILE);
+ ok(ret, "SystemParametersInfo failed\n");
+ ret = SystemParametersInfo(SPI_GETMOUSESPEED, 0, &temp, 0);
+ ok(ret, "SystemParametersInfo failed\n");
+ ok(temp == 20, "SPI_GETMOUSESPEED did not get value set by SPI_SETMOUSESPEED (%d
instead of 20)\n", (int)temp);
+
+ temp = 21;
+ ret = SystemParametersInfo(SPI_SETMOUSESPEED, 0, (PVOID)temp, SPIF_SENDCHANGE |
SPIF_UPDATEINIFILE);
+ ok(!ret, "expected SystemParametersInfo to fail\n");
+ ret = SystemParametersInfo(SPI_GETMOUSESPEED, 0, &temp, 0);
+ ok(ret, "SystemParametersInfo failed\n");
+ ok(temp == 20, "SPI_GETMOUSESPEED got unexpected value (%d instead of
20)\n", (int)temp);
+
+ temp = 0;
+ ret = SystemParametersInfo(SPI_SETMOUSESPEED, 0, (PVOID)temp, SPIF_SENDCHANGE |
SPIF_UPDATEINIFILE);
+ ok(!ret, "expected SystemParametersInfo to fail\n");
+ ret = SystemParametersInfo(SPI_GETMOUSESPEED, 0, &temp, 0);
+ ok(ret, "SystemParametersInfo failed\n");
+ ok(temp == 20, "SPI_GETMOUSESPEED got unexpected value (%d instead of
20)\n", (int)temp);
+
ret = SystemParametersInfo(SPI_SETMOUSESPEED, 0, (PVOID)ulMouseSpeed, SPIF_SENDCHANGE
| SPIF_UPDATEINIFILE);
ok(ret, "SystemParametersInfo failed\n");
}