[pango/line-underline: 59/59] tests: Handle new attributes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/line-underline: 59/59] tests: Handle new attributes
- Date: Fri, 1 Nov 2019 01:24:46 +0000 (UTC)
commit eda240e4bab967bcdf8d1f556f9ce6cf65c94cb8
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Aug 22 11:51:44 2019 +0200
tests: Handle new attributes
tests/test-common.c | 2 ++
tests/testattributes.c | 2 ++
2 files changed, 4 insertions(+)
---
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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]