summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-08-22 11:51:44 +0200
committerMatthias Clasen <mclasen@redhat.com>2019-10-31 21:23:59 -0400
commiteda240e4bab967bcdf8d1f556f9ce6cf65c94cb8 (patch)
tree5bd17f6d5f13ffea114acf62b6ffa776d575e3bf /tests
parentde0ab09cdbf5bdfa0caa365a22ac864e41838e48 (diff)
downloadpango-eda240e4bab967bcdf8d1f556f9ce6cf65c94cb8.tar.gz
tests: Handle new attributes
Diffstat (limited to 'tests')
-rw-r--r--tests/test-common.c2
-rw-r--r--tests/testattributes.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-common.c b/tests/test-common.c
index 012059f4..608b405c 100644
--- a/tests/test-common.c
+++ b/tests/test-common.c
@@ -110,6 +110,7 @@ print_attribute (PangoAttribute *attr, GString *string)
case PANGO_ATTR_SIZE:
case PANGO_ATTR_ABSOLUTE_SIZE:
case PANGO_ATTR_UNDERLINE:
+ case PANGO_ATTR_OVERLINE:
case PANGO_ATTR_STRIKETHROUGH:
case PANGO_ATTR_RISE:
case PANGO_ATTR_FALLBACK:
@@ -129,6 +130,7 @@ print_attribute (PangoAttribute *attr, GString *string)
case PANGO_ATTR_FOREGROUND:
case PANGO_ATTR_BACKGROUND:
case PANGO_ATTR_UNDERLINE_COLOR:
+ case PANGO_ATTR_OVERLINE_COLOR:
case PANGO_ATTR_STRIKETHROUGH_COLOR:
g_string_append_printf (string, "%s", pango_color_to_string (&((PangoAttrColor *)attr)->color));
break;
diff --git a/tests/testattributes.c b/tests/testattributes.c
index dde1cbce..4bee59dc 100644
--- a/tests/testattributes.c
+++ b/tests/testattributes.c
@@ -54,6 +54,8 @@ test_attributes_basic (void)
pango_font_description_free (desc);
test_copy (pango_attr_underline_new (PANGO_UNDERLINE_LOW));
test_copy (pango_attr_underline_color_new (100, 200, 300));
+ test_copy (pango_attr_overline_new (PANGO_OVERLINE_SINGLE));
+ test_copy (pango_attr_overline_color_new (100, 200, 300));
test_copy (pango_attr_strikethrough_new (TRUE));
test_copy (pango_attr_strikethrough_color_new (100, 200, 300));
test_copy (pango_attr_rise_new (256));