summaryrefslogtreecommitdiff
path: root/tests/test-layout.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-14 19:15:00 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-07-14 19:15:00 -0400
commitcbf69898fc840ebf284310ed9e2c03b165155253 (patch)
treec0c354f5df50844697b92de1c5402b230223ad4b /tests/test-layout.c
parent22beada330508377bed1dc50e035cd5b09731dc0 (diff)
downloadpango-cbf69898fc840ebf284310ed9e2c03b165155253.tar.gz
Some test updates
Share the attribute printing code between all the tests, update expected output to match.
Diffstat (limited to 'tests/test-layout.c')
-rw-r--r--tests/test-layout.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-layout.c b/tests/test-layout.c
index c4d01ccc..1ad3498c 100644
--- a/tests/test-layout.c
+++ b/tests/test-layout.c
@@ -279,17 +279,17 @@ test_file (const gchar *filename, GString *string)
pango_layout_set_wrap (layout, wrap);
g_string_append (string, pango_layout_get_text (layout));
- g_string_append (string, "\n---\n\n");
+ g_string_append (string, "\n--- parameters\n\n");
g_string_append_printf (string, "wrapped: %d\n", pango_layout_is_wrapped (layout));
g_string_append_printf (string, "ellipsized: %d\n", pango_layout_is_ellipsized (layout));
g_string_append_printf (string, "lines: %d\n", pango_layout_get_line_count (layout));
if (width != 0)
g_string_append_printf (string, "width: %d\n", pango_layout_get_width (layout));
- g_string_append (string, "\n---\n\n");
+ g_string_append (string, "\n--- attributes\n\n");
print_attr_list (pango_layout_get_attributes (layout), string);
- g_string_append (string, "\n---\n\n");
+ g_string_append (string, "\n--- lines\n\n");
dump_lines (layout, string);
- g_string_append (string, "\n---\n\n");
+ g_string_append (string, "\n--- runs\n\n");
dump_runs (layout, string);
g_object_unref (layout);