Visual Studio builds: Adapt to the Python-fied glib-genmarshal
[platform/upstream/atk.git] / tests / testrole.c
index 593549e..a50f096 100644 (file)
@@ -52,23 +52,10 @@ test_role (void)
       result = FALSE;
     }
 
-  role1 = atk_role_register ("test-role");
-  name = atk_role_get_name (role1);
-  if (!name || strcmp (name, "test-role") != 0)
-    {
-      g_print ("Unexpected name for test-role. Expected 'test-role', received '%s'\n", name);
-      result = FALSE;
-    }
-  role2 = atk_role_for_name ("test-role");
-  if (role1 != role2)
-  {
-    g_print ("Unexpected role for test-role. Expected %i, received %i\n", role1, role2);
-    result = FALSE;
-  }
   role2 = atk_role_for_name ("TEST_ROLE");
-  if (role2 != 0)
+  if (role2 != ATK_ROLE_INVALID)
     {
-      g_print ("Unexpected role for TEST_ROLE. Expected %i, received %i\n", 0, role2);
+      g_print ("Unexpected role for TEST_ROLE. Expected %i, received %i\n", ATK_ROLE_INVALID, role2);
       result = FALSE;
     }
   /*
@@ -80,6 +67,7 @@ test_role (void)
       g_print ("Unexpected name for undefined role %s\n", name);
       result = FALSE;
     }
+
   return result;
 }