[pango/log-attr-tweaks] tests: Validate log attrs



commit d534ae406732e5a8e530fbb741c18595035be061
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Aug 21 18:39:09 2021 -0400

    tests: Validate log attrs
    
    Now that we have api to do it, we should validate
    our log attrs in test-break.

 tests/test-break.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/tests/test-break.c b/tests/test-break.c
index d59971a0..a0fdaa1a 100644
--- a/tests/test-break.c
+++ b/tests/test-break.c
@@ -95,6 +95,7 @@ test_file (const gchar *filename, GString *string)
 
   g_assert_cmpint (len, ==, len2);
   g_assert_true (memcmp (attrs, attrs2, sizeof (PangoLogAttr) * len) == 0);
+  g_assert_true (pango_validate_log_attrs (text, length, attrs, len, NULL));
 
   layout2 = pango_layout_copy (layout);
   attrs2 = pango_layout_get_log_attrs_readonly (layout2, &len2);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]