summaryrefslogtreecommitdiff
path: root/tests/layouts
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/layouts
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/layouts')
-rw-r--r--tests/layouts/valid-1.expected22
-rw-r--r--tests/layouts/valid-2.expected14
-rw-r--r--tests/layouts/valid-3.expected8
3 files changed, 22 insertions, 22 deletions
diff --git a/tests/layouts/valid-1.expected b/tests/layouts/valid-1.expected
index e03bf31d..292d6f43 100644
--- a/tests/layouts/valid-1.expected
+++ b/tests/layouts/valid-1.expected
@@ -1,35 +1,35 @@
This is a test of the automatic emergency brake!
----
+--- parameters
wrapped: 0
ellipsized: 1
lines: 2
width: 225280
----
+--- attributes
range 0 22
range 22 41
-[22 41] foreground #00000000ffff
-[22 41] underline 1
+[22,41]foreground=#00000000ffff
+[22,41]underline=1
range 41 2147483647
----
+--- lines
i=1, index=0, paragraph-start=1, dir=ltr 'This is a test of the automatic emergency brake!
'
i=2, index=49, paragraph-start=1, dir=ltr ''
----
+--- runs
i=1, index=0, chars=22, level=0, gravity=south, flags=0, font=OMITTED, script=latin, language=en-us, 'This is a test of the '
i=2, index=22, chars=11, level=0, gravity=south, flags=0, font=OMITTED, script=latin, language=en-us, 'automatic e'
- [22 41] foreground #00000000ffff
- [22 41] underline 1
+[22,41]foreground=#00000000ffff
+[22,41]underline=1
i=3, index=33, chars=15, level=0, gravity=south, flags=2, font=OMITTED, script=common, language=en-us, 'mergency brake!'
- [0 2147483647] fallback 0
- [22 41] foreground #00000000ffff
- [22 41] underline 1
+[0,2147483647]fallback=0
+[22,41]foreground=#00000000ffff
+[22,41]underline=1
i=4, index=48, no run, line end
i=5, index=49, no run, line end
diff --git a/tests/layouts/valid-2.expected b/tests/layouts/valid-2.expected
index 1467dd25..2efc56fe 100644
--- a/tests/layouts/valid-2.expected
+++ b/tests/layouts/valid-2.expected
@@ -1,34 +1,34 @@
test the blue drink after dinner
----
+--- parameters
wrapped: 0
ellipsized: 0
lines: 2
----
+--- attributes
range 0 9
range 9 13
-[9 13] style 2
+[9,13]style=2
range 13 20
range 20 25
-[20 25] underline 1
+[20,25]underline=1
range 25 2147483647
----
+--- lines
i=1, index=0, paragraph-start=1, dir=ltr 'test the blue drink after dinner
'
i=2, index=33, paragraph-start=1, dir=ltr ''
----
+--- runs
i=1, index=0, chars=9, level=0, gravity=south, flags=0, font=OMITTED, script=latin, language=en-us, 'test the '
i=2, index=9, chars=4, level=0, gravity=south, flags=0, font=OMITTED, script=latin, language=en-us, 'blue'
i=3, index=13, chars=7, level=0, gravity=south, flags=0, font=OMITTED, script=latin, language=en-us, ' drink '
i=4, index=20, chars=5, level=0, gravity=south, flags=0, font=OMITTED, script=latin, language=en-us, 'after'
- [20 25] underline 1
+[20,25]underline=1
i=5, index=25, chars=7, level=0, gravity=south, flags=0, font=OMITTED, script=latin, language=en-us, ' dinner'
i=6, index=32, no run, line end
i=7, index=33, no run, line end
diff --git a/tests/layouts/valid-3.expected b/tests/layouts/valid-3.expected
index ce983c34..247c61bf 100644
--- a/tests/layouts/valid-3.expected
+++ b/tests/layouts/valid-3.expected
@@ -1,22 +1,22 @@
ABC😀️D
----
+--- parameters
wrapped: 0
ellipsized: 0
lines: 2
----
+--- attributes
range 0 2147483647
----
+--- lines
i=1, index=0, paragraph-start=1, dir=ltr 'ABC😀️D
'
i=2, index=12, paragraph-start=1, dir=ltr ''
----
+--- runs
i=1, index=0, chars=3, level=0, gravity=south, flags=0, font=OMITTED, script=latin, language=en-us, 'ABC'
i=2, index=3, chars=2, level=0, gravity=south, flags=0, font=OMITTED, script=latin, language=en-us, '😀️'