summaryrefslogtreecommitdiff
path: root/tests/test-common.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-07-09 13:41:48 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-07-09 13:47:59 -0400
commit59be04d7104bfcef5ae34a2e467725f5ced9f983 (patch)
tree1663dd30c7a908d5273942d10d05a3063e13e52d /tests/test-common.h
parentab798bf0d2221a3cfb8a64b7b5d3be39e6d35fc9 (diff)
downloadpango-59be04d7104bfcef5ae34a2e467725f5ced9f983.tar.gz
Improve attribute test infrastructure
Make attribute_from_string() parse enum attribute values in the same way as PangoMarkup, and use it in the attribute tests. Still to do: Do the same for flags. The flags parsing function isn't exported, so this needs our tests to be statically linked.
Diffstat (limited to 'tests/test-common.h')
-rw-r--r--tests/test-common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test-common.h b/tests/test-common.h
index 22953f2d..e3f46afe 100644
--- a/tests/test-common.h
+++ b/tests/test-common.h
@@ -19,6 +19,9 @@ void print_attributes (GSList *attrs,
void print_attr_list (PangoAttrList *attrs,
GString *string);
+PangoAttribute *
+attribute_from_string (const char *string);
+
PangoAttrList *
attributes_from_string (const char *string);