Fabian Maurer : comctl32/tests: Add a test for base class names.

Alexandre Julliard julliard at winehq.org
Mon Aug 27 16:18:14 CDT 2018


Module: wine
Branch: master
Commit: 48e8e579bc2b699847b9e3edcd830568662c901a
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=48e8e579bc2b699847b9e3edcd830568662c901a

Author: Fabian Maurer <dark.shadow4 at web.de>
Date:   Mon Aug 27 09:14:12 2018 +0300

comctl32/tests: Add a test for base class names.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/comctl32/tests/misc.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/dlls/comctl32/tests/misc.c b/dlls/comctl32/tests/misc.c
index eca85d4..85f339b 100644
--- a/dlls/comctl32/tests/misc.c
+++ b/dlls/comctl32/tests/misc.c
@@ -345,6 +345,9 @@ static void check_class( const char *name, int must_exist, UINT style, UINT igno
 
     if (GetClassInfoA( 0, name, &wc ))
     {
+        char buff[64];
+        HWND hwnd;
+
 todo_wine_if(strcmp(name, "Button") &&
                 strcmp(name, "ComboBox") &&
                 strcmp(name, "Edit") &&
@@ -356,6 +359,12 @@ todo_wine_if(strcmp(name, "Button") &&
         ok( !(wc.style & ~style), "System class %s has extra bits %x (%08x/%08x)\n",
             name, wc.style & ~style, wc.style, style );
         ok( !wc.hInstance, "System class %s has hInstance %p\n", name, wc.hInstance );
+
+        hwnd = CreateWindowA(name, 0, 0, 0, 0, 0, 0, 0, NULL, GetModuleHandleA(NULL), 0);
+        ok( hwnd != NULL, "Failed to create window for class %s.\n", name );
+        GetClassNameA(hwnd, buff, ARRAY_SIZE(buff));
+        ok( !strcmp(name, buff), "Unexpected class name %s, expected %s.\n", buff, name );
+        DestroyWindow(hwnd);
     }
     else
         ok( !must_exist, "System class %s does not exist\n", name );




More information about the wine-cvs mailing list