summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlejandro Piñeiro <apinheiro@igalia.com>2013-12-09 19:11:21 +0100
committerAlejandro Piñeiro <apinheiro@igalia.com>2013-12-09 19:11:21 +0100
commitd8d75d3e38e8532c36f8a5d9ebeca0518b1221e6 (patch)
treebfb7f0c122f5c5e0949808cc68e62a00ad1be91a /tests
parenteacee483828a5f77e8bd80ae68edbf077549aa9e (diff)
downloadatk-d8d75d3e38e8532c36f8a5d9ebeca0518b1221e6.tar.gz
role: deprecate atk_role_register
https://bugzilla.gnome.org/show_bug.cgi?id=720117
Diffstat (limited to 'tests')
-rw-r--r--tests/testrole.c33
1 files changed, 2 insertions, 31 deletions
diff --git a/tests/testrole.c b/tests/testrole.c
index 2f5bacc..a50f096 100644
--- a/tests/testrole.c
+++ b/tests/testrole.c
@@ -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;
}
/*
@@ -81,22 +68,6 @@ test_role (void)
result = FALSE;
}
- role1 = atk_role_register ("");
- if (role1 != ATK_ROLE_INVALID)
- {
- g_print ("atk_role_register allowed to register empty string, but this is "
- "an invalid role name\n");
- result = FALSE;
- }
-
- role1 = atk_role_register (" ");
- if (role1 != ATK_ROLE_INVALID)
- {
- g_print ("atk_role_register allowed to register all whitespace string, but "
- "that is an invalid role name \n");
- result = FALSE;
- }
-
return result;
}