summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBill Haneman <billh@src.gnome.org>2002-11-14 17:50:57 +0000
committerBill Haneman <billh@src.gnome.org>2002-11-14 17:50:57 +0000
commit67c8aa711b95f37794d2e288cd6b76546af95aa6 (patch)
treee020b22e0cdd78d3ecc412dec853a1362591c2f2 /tests
parente4eec41aff125c93aa3a488bb514c9df82aed6b4 (diff)
downloadatk-67c8aa711b95f37794d2e288cd6b76546af95aa6.tar.gz
Revved to 1.1.2, added ATK_RELATION_EMBEDS/EMBEDDED_BY,
atk_hyperlink_is_inline.
Diffstat (limited to 'tests')
-rw-r--r--tests/testrelation.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/testrelation.c b/tests/testrelation.c
index b42f7c2..2385dcf 100644
--- a/tests/testrelation.c
+++ b/tests/testrelation.c
@@ -52,10 +52,25 @@ test_relation (void)
return FALSE;
}
+ name = atk_relation_type_get_name (ATK_RELATION_EMBEDS);
+ g_return_val_if_fail (name, FALSE);
+ if (strcmp (name, "embeds") != 0)
+ {
+ g_print ("Unexpected name for ATK_RELATION_EMBEDS %s\n", name);
+ return FALSE;
+ }
+
+ type1 = atk_relation_type_for_name ("embedded-by");
+ if (type1 != ATK_RELATION_EMBEDDED_BY)
+ {
+ g_print ("Unexpected role for ATK_RELATION_EMBEDDED_BY\n");
+ return FALSE;
+ }
+
type1 = atk_relation_type_for_name ("controlled-by");
if (type1 != ATK_RELATION_CONTROLLED_BY)
{
- g_print ("Unexpected type for focused\n");
+ g_print ("Unexpected name for ATK_RELATION_CONTROLLED_BY\n");
return FALSE;
}