summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-29 16:12:58 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-29 16:27:08 -0400
commit69c25b9cb70c73c0ec215170009185bfea60165d (patch)
treeb18c9857ee7a57e371561592f0ae30dab4d513c9 /tests
parent674d86a1c82e93e2ff31f502224e0f21f9eb59b8 (diff)
downloadpango-69c25b9cb70c73c0ec215170009185bfea60165d.tar.gz
test-itemize: Keep in sync with PangoLayout
This really needs some more generic treatment. Update affected test outputs.
Diffstat (limited to 'tests')
-rw-r--r--tests/itemize/two.expected14
-rw-r--r--tests/test-itemize.c7
2 files changed, 11 insertions, 10 deletions
diff --git a/tests/itemize/two.expected b/tests/itemize/two.expected
index 06518c88..5abb97b9 100644
--- a/tests/itemize/two.expected
+++ b/tests/itemize/two.expected
@@ -1,9 +1,9 @@
<span font="Cantarell 11">one <span font_features="tnum=0">tw<u>o</u> <span font_features="dlig=1">two</span> </span>th<b>r</b>ee</span>
-Items: one tw |o | two th |r |ee
-Chars: 6(0) |1(6) |7(7) |1(14) |2(15)
-Font: Cantarell 11 |Cantarell 11 |Cantarell 11 |Cantarell Bold 11|Cantarell 11
-Script: latin |latin |latin |latin |latin
-Lang: en-us |en-us |en-us |en-us |en-us
-Bidi: 0 |0 |0 |0 |0
-Attrs: [4,12]font-features=tnum=0|[6,7]underline=1,[4,12]font-features=tnum=0|[8,11]font-features=dlig=1,[4,12]font-features=tnum=0| |
+Items: one two two th |r |ee
+Chars: 14(0) |1(14) |2(15)
+Font: Cantarell 11 |Cantarell Bold 11|Cantarell 11
+Script: latin |latin |latin
+Lang: en-us |en-us |en-us
+Bidi: 0 |0 |0
+Attrs: [8,11]font-features=dlig=1,[6,7]underline=1,[4,12]font-features=tnum=0| |
diff --git a/tests/test-itemize.c b/tests/test-itemize.c
index 00af2256..db6a715f 100644
--- a/tests/test-itemize.c
+++ b/tests/test-itemize.c
@@ -74,11 +74,12 @@ affects_itemization (PangoAttribute *attr,
case PANGO_ATTR_GRAVITY:
case PANGO_ATTR_GRAVITY_HINT:
/* These are part of ItemProperties, so need to break runs */
+ case PANGO_ATTR_LETTER_SPACING:
case PANGO_ATTR_SHAPE:
case PANGO_ATTR_RISE:
- case PANGO_ATTR_UNDERLINE:
- case PANGO_ATTR_STRIKETHROUGH:
- case PANGO_ATTR_LETTER_SPACING:
+ case PANGO_ATTR_LINE_HEIGHT:
+ case PANGO_ATTR_ABSOLUTE_LINE_HEIGHT:
+ case PANGO_ATTR_TEXT_TRANSFORM:
return TRUE;
default:
return FALSE;