Paul Vriens : uxtheme/tests: Add a case sensitivity test.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jun 23 06:43:16 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 7c0aaf31ec2d2cc6ba4262dc4a2551bb2706e509
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=7c0aaf31ec2d2cc6ba4262dc4a2551bb2706e509

Author: Paul Vriens <Paul.Vriens at xs4all.nl>
Date:   Thu Jun 22 14:38:32 2006 +0200

uxtheme/tests: Add a case sensitivity test.

---

 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");




More information about the wine-cvs mailing list