summaryrefslogtreecommitdiff
path: root/tests/markups
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-09-07 06:35:05 -0400
committerBehdad Esfahbod <behdad@behdad.org>2018-01-03 12:41:46 +0000
commit3ccb6085580d05bfb0f2dfb77d55eaea1403f45d (patch)
tree5a6be89456b019e38e7ed4fb53b53ff480aee60e /tests/markups
parentefa66e7b634050ef395418b544b012a4a5183973 (diff)
downloadpango-3ccb6085580d05bfb0f2dfb77d55eaea1403f45d.tar.gz
Add some tests with variations
Diffstat (limited to 'tests/markups')
-rw-r--r--tests/markups/valid-10.expected24
-rw-r--r--tests/markups/valid-10.markup11
-rw-r--r--tests/markups/valid-11.expected50
-rw-r--r--tests/markups/valid-11.markup11
4 files changed, 96 insertions, 0 deletions
diff --git a/tests/markups/valid-10.expected b/tests/markups/valid-10.expected
new file mode 100644
index 00000000..1479696c
--- /dev/null
+++ b/tests/markups/valid-10.expected
@@ -0,0 +1,24 @@
+Lots of attrs
+
+
+---
+
+range 0 13
+[0 13] font Sans Italic 12 @wdth=100,wght=200
+[0 13] foreground #0000ffff0000
+[0 13] background #f0f0f0f0f0f0
+[0 13] underline 2
+[0 13] underline-color #ffff00000000
+[0 13] gravity 0
+[0 13] gravity-hint 1
+[0 13] strikethrough 1
+[0 13] strikethrough-color #00000000ffff
+[0 13] fallback 0
+[0 13] language de
+range 13 2147483647
+
+
+---
+
+[0:13] de Sans Italic 12 @wdth=100,wght=200
+[13:2147483647] (null) Sans Italic 12 @wdth=100,wght=200
diff --git a/tests/markups/valid-10.markup b/tests/markups/valid-10.markup
new file mode 100644
index 00000000..b4540749
--- /dev/null
+++ b/tests/markups/valid-10.markup
@@ -0,0 +1,11 @@
+<span font="Sans Italic 12 @wdth=100,wght=200"
+ foreground="#00ff00"
+ background="#f0f0f0"
+ underline="double"
+ underline_color="red"
+ strikethrough="true"
+ strikethrough_color="blue"
+ fallback="false"
+ lang="de"
+ gravity="south"
+ gravity_hint="strong">Lots of attrs</span>
diff --git a/tests/markups/valid-11.expected b/tests/markups/valid-11.expected
new file mode 100644
index 00000000..a41b65b8
--- /dev/null
+++ b/tests/markups/valid-11.expected
@@ -0,0 +1,50 @@
+Lots of attrs
+
+
+---
+
+range 0 5
+[0 13] font Sans Italic 12 @wdth=100,wght=200
+[0 13] foreground #0000ffff0000
+[0 13] background #f0f0f0f0f0f0
+[0 13] underline 2
+[0 13] underline-color #ffff00000000
+[0 13] gravity 0
+[0 13] gravity-hint 1
+[0 13] strikethrough 1
+[0 13] strikethrough-color #00000000ffff
+[0 13] fallback 0
+[0 13] language de
+range 5 7
+[0 13] foreground #0000ffff0000
+[0 13] background #f0f0f0f0f0f0
+[0 13] underline 2
+[0 13] underline-color #ffff00000000
+[0 13] gravity 0
+[0 13] gravity-hint 1
+[0 13] strikethrough 1
+[0 13] strikethrough-color #00000000ffff
+[0 13] fallback 0
+[0 13] language de
+[5 7] font Bold
+range 7 13
+[0 13] font Sans Italic 12 @wdth=100,wght=200
+[0 13] foreground #0000ffff0000
+[0 13] background #f0f0f0f0f0f0
+[0 13] underline 2
+[0 13] underline-color #ffff00000000
+[0 13] gravity 0
+[0 13] gravity-hint 1
+[0 13] strikethrough 1
+[0 13] strikethrough-color #00000000ffff
+[0 13] fallback 0
+[0 13] language de
+range 13 2147483647
+
+
+---
+
+[0:5] de Sans Italic 12 @wdth=100,wght=200
+[5:7] de Sans Bold 12 @wdth=100,wght=200
+[7:13] de Sans Italic 12 @wdth=100,wght=200
+[13:2147483647] (null) Sans Italic 12 @wdth=100,wght=200
diff --git a/tests/markups/valid-11.markup b/tests/markups/valid-11.markup
new file mode 100644
index 00000000..e7ae8388
--- /dev/null
+++ b/tests/markups/valid-11.markup
@@ -0,0 +1,11 @@
+<span font="Sans Italic 12 @wdth=100,wght=200"
+ foreground="#00ff00"
+ background="#f0f0f0"
+ underline="double"
+ underline_color="red"
+ strikethrough="true"
+ strikethrough_color="blue"
+ fallback="false"
+ lang="de"
+ gravity="south"
+ gravity_hint="strong">Lots <span font="bold">of</span> attrs</span>