[pango/non-breaking-attrs: 2/3] Add a test for itemization with attributes



commit 2875c50db68c9ef138f378e26fcb5e4a24fd6132
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jul 11 11:51:25 2019 -0400

    Add a test for itemization with attributes
    
    This tests that font_fatures don't break runs anymore.

 tests/itemize/two.expected | 8 ++++++++
 tests/itemize/two.items    | 3 +++
 2 files changed, 11 insertions(+)
---
diff --git a/tests/itemize/two.expected b/tests/itemize/two.expected
new file mode 100644
index 00000000..f0adbad0
--- /dev/null
+++ b/tests/itemize/two.expected
@@ -0,0 +1,8 @@
+<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          
+Font:   Cantarell 11|Cantarell 11         |Cantarell 11                          |Cantarell 11         
|Cantarell 11                               |Cantarell 11         |Cantarell 11|Cantarell Bold 11|Cantarell 11
+Script: Latn        |Latn                 |Latn                                  |Latn                 |Latn 
                                      |Latn                 |Latn        |Latn             |Latn        
+Lang:   en-us       |en-us                |en-us                                 |en-us                
|en-us                                      |en-us                |en-us       |en-us            |en-us       
+Bidi:   0           |0                    |0                                     |0                    |0    
                                      |0                    |0           |0                |0           
+Attrs:              
|[4,12]features=tnum=0|[4,12]features=tnum=0,[6,7]underline=1|[4,12]features=tnum=0|[4,12]features=tnum=0,[8,11]features=dlig=1|[4,12]features=tnum=0|
            |                 |            
diff --git a/tests/itemize/two.items b/tests/itemize/two.items
new file mode 100644
index 00000000..4ba41454
--- /dev/null
+++ b/tests/itemize/two.items
@@ -0,0 +1,3 @@
+# test that font_features attributes don't break the
+# runs anymore (but other attributes do)
+<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>


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