summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-08 01:22:14 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-08 10:38:02 -0400
commit90b289bba8492e8de2373a23e3023bba70df69bc (patch)
tree224a4f8fa52dc4ef292eaf4edfc31d9ab9fbe7e0 /tests
parent1f262e416a2d33265539e423ab5de28895379adf (diff)
downloadpango-90b289bba8492e8de2373a23e3023bba70df69bc.tar.gz
markup: Allow specifying size in pt
Accept values like 12.5pt, in addition to the other ways of specifying font size in markup. Fixes: #67
Diffstat (limited to 'tests')
-rw-r--r--tests/markups/fail-19.expected1
-rw-r--r--tests/markups/fail-19.markup1
-rw-r--r--tests/markups/valid-20.expected14
-rw-r--r--tests/markups/valid-20.markup1
4 files changed, 15 insertions, 2 deletions
diff --git a/tests/markups/fail-19.expected b/tests/markups/fail-19.expected
deleted file mode 100644
index 2627110c..00000000
--- a/tests/markups/fail-19.expected
+++ /dev/null
@@ -1 +0,0 @@
-ERROR: Value of 'size' attribute on <span> tag on line 1 could not be parsed; should be an integer no more than 2147483647, or a string such as 'small', not '20px' \ No newline at end of file
diff --git a/tests/markups/fail-19.markup b/tests/markups/fail-19.markup
deleted file mode 100644
index 726022e1..00000000
--- a/tests/markups/fail-19.markup
+++ /dev/null
@@ -1 +0,0 @@
-<span size="20px">test</span>
diff --git a/tests/markups/valid-20.expected b/tests/markups/valid-20.expected
new file mode 100644
index 00000000..bd3ac65f
--- /dev/null
+++ b/tests/markups/valid-20.expected
@@ -0,0 +1,14 @@
+test
+
+
+---
+
+range 0 4
+[0,4]size=20480
+range 4 2147483647
+
+
+---
+
+[0:4] (null) Normal 20
+[4:2147483647] (null) Normal 20
diff --git a/tests/markups/valid-20.markup b/tests/markups/valid-20.markup
new file mode 100644
index 00000000..424b4c9c
--- /dev/null
+++ b/tests/markups/valid-20.markup
@@ -0,0 +1 @@
+<span size="20pt">test</span>