[pango/line-underline: 8/10] tests: Handle new attributes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/line-underline: 8/10] tests: Handle new attributes
- Date: Fri, 1 Nov 2019 02:36:05 +0000 (UTC)
commit b519c4a7c639569f0bc9763ec04081b9b2b08145
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 | 3 +++
2 files changed, 5 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..9964f3d0 100644
--- a/tests/testattributes.c
+++ b/tests/testattributes.c
@@ -53,7 +53,10 @@ test_attributes_basic (void)
test_copy (pango_attr_font_desc_new (desc));
pango_font_description_free (desc);
test_copy (pango_attr_underline_new (PANGO_UNDERLINE_LOW));
+ test_copy (pango_attr_underline_new (PANGO_UNDERLINE_ERROR_LINE));
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]