[uxtheme/tests][6] Add a case sensitivity test
Paul Vriens
Paul.Vriens at xs4all.nl
Thu Jun 22 07:38:32 CDT 2006
Hi,
added a case sensitivity test for OpenThemeData as I saw some lower-case
classlists in a snoop-trace.
Tests succeed on Wine (theming enabled/disabled), WinXP (theming
enabled) and W2K3 (theming disabled).
Changelog
Add a case sensitivity test.
Cheers,
Paul.
---
dlls/uxtheme/tests/system.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dlls/uxtheme/tests/system.c b/dlls/uxtheme/tests/system.c
index 1072498..5375afe 100644
--- a/dlls/uxtheme/tests/system.c
+++ b/dlls/uxtheme/tests/system.c
@@ -160,6 +160,7 @@ static void test_OpenThemeData(void)
WCHAR szInvalidClassList[] = {'D','E','A','D','B','E','E','F', 0 };
WCHAR szButtonClassList[] = {'B','u','t','t','o','n', 0 };
+ WCHAR szButtonClassList2[] = {'b','U','t','T','o','N', 0 };
WCHAR szClassList[] = {'B','u','t','t','o','n',';','L','i','s','t','B','o','x', 0 };
bThemeActive = pIsThemeActive();
@@ -245,6 +246,15 @@ static void test_OpenThemeData(void)
"Expected ERROR_SUCCESS, got 0x%08lx\n",
GetLastError());
+ /* Test with bUtToN instead of Button */
+ SetLastError(0xdeadbeef);
+ hTheme = pOpenThemeData(hWnd, szButtonClassList2);
+ ok( hTheme != NULL, "got NULL, expected a HTHEME handle\n");
+ todo_wine
+ ok( GetLastError() == ERROR_SUCCESS,
+ "Expected ERROR_SUCCESS, got 0x%08lx\n",
+ GetLastError());
+
SetLastError(0xdeadbeef);
hTheme = pOpenThemeData(hWnd, szClassList);
ok( hTheme != NULL, "got NULL, expected a HTHEME handle\n");
--
1.4.0
More information about the wine-patches
mailing list