summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2001-01-22 23:08:10 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-01-22 23:08:10 +0000
commitf685b8e639f4c28c49be358b62f85d0ccfa1415f (patch)
tree7f3320a119817e256f25537266b9582328f32386 /tests
parentb425950b463041cb7ed58367507f1ca528535a12 (diff)
downloadpango-f685b8e639f4c28c49be358b62f85d0ccfa1415f.tar.gz
s/is_break/is_line_break/g;
2001-01-22 Havoc Pennington <hp@redhat.com> * tests/testboundaries.c (check_line_char): s/is_break/is_line_break/g; * pango/pango-layout.c, pango/pango-layout.h: Add PangoWrapMode for PangoLayout * pango/break.c (pango_default_break): implement char break log attr * pango/pango-break.h (struct _PangoLogAttr): rename is_break is_line_break, add is_char_break field
Diffstat (limited to 'tests')
-rw-r--r--tests/testboundaries.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/testboundaries.c b/tests/testboundaries.c
index c05bc837..895231ae 100644
--- a/tests/testboundaries.c
+++ b/tests/testboundaries.c
@@ -202,25 +202,25 @@ check_line_char (gunichar wc,
{
if (prev_wc == '\r')
{
- if (attr->is_break)
+ if (attr->is_line_break)
fail ("line break between \\r and \\n");
}
- if (next_attr && !next_attr->is_break)
+ if (next_attr && !next_attr->is_line_break)
fail ("no line break after \\n");
}
- if (attr->is_break && prev_wc == 0)
+ if (attr->is_line_break && prev_wc == 0)
fail ("first char in string should not be marked as a line break");
if (break_type == G_UNICODE_BREAK_SPACE)
{
- if (attr->is_break && prev_attr != NULL &&
+ if (attr->is_line_break && prev_attr != NULL &&
!attr->is_mandatory_break)
fail ("can't break lines before a space unless a mandatory break char precedes it; prev char was " CHFORMAT, prev_wc);
}
- if (attr->is_mandatory_break && !attr->is_break)
+ if (attr->is_mandatory_break && !attr->is_line_break)
fail ("mandatory breaks must also be marked as regular breaks");
@@ -232,19 +232,19 @@ check_line_char (gunichar wc,
if (break_type == G_UNICODE_BREAK_OPEN_PUNCTUATION &&
prev_break_type == G_UNICODE_BREAK_OPEN_PUNCTUATION &&
- attr->is_break &&
+ attr->is_line_break &&
!attr->is_mandatory_break)
fail ("can't break between two open punctuation chars");
if (break_type == G_UNICODE_BREAK_CLOSE_PUNCTUATION &&
prev_break_type == G_UNICODE_BREAK_CLOSE_PUNCTUATION &&
- attr->is_break &&
+ attr->is_line_break &&
!attr->is_mandatory_break)
fail ("can't break between two close punctuation chars");
if (break_type == G_UNICODE_BREAK_QUOTATION &&
prev_break_type == G_UNICODE_BREAK_ALPHABETIC &&
- attr->is_break &&
+ attr->is_line_break &&
!attr->is_mandatory_break)
fail ("can't break letter-quotemark sequence");
}