summaryrefslogtreecommitdiff
path: root/tests/test-common.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-06-26 11:01:35 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-06-28 00:05:09 -0400
commite028b8997775ddade1c4d94156b0b7c7262959a8 (patch)
tree631ab8b157d33dcc0dd050b2b1af094ea5141f9d /tests/test-common.h
parentc463e096e119abb9b65b74c078ee1f2b1aae8c30 (diff)
downloadpango-e028b8997775ddade1c4d94156b0b7c7262959a8.tar.gz
Add better attribute test infrastructure
Add a way to deserialize a PangoAttrList from a string, for less cumbersome tests. And use it in testattributes.
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 28a850ae..a357c2a9 100644
--- a/tests/test-common.h
+++ b/tests/test-common.h
@@ -15,6 +15,9 @@ void print_attributes (GSList *attrs,
void print_attr_list (PangoAttrList *attrs,
GString *string);
+PangoAttrList *
+attributes_from_string (const char *string);
+
const char *get_script_name (GUnicodeScript s);