diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-08-08 14:44:57 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-08-08 14:44:57 +0000 |
commit | 4d4d9e02892f6ed8496af5e2c6067d650eff3fd5 (patch) | |
tree | 8baccfcbf663d7431c6cab69f42f4fd3712b3f8d /tests/markups | |
parent | 1f262e416a2d33265539e423ab5de28895379adf (diff) | |
parent | 59d38cde20425696543d262c5329b14056915614 (diff) | |
download | pango-4d4d9e02892f6ed8496af5e2c6067d650eff3fd5.tar.gz |
Merge branch 'markup-sizes' into 'main'
markup: Allow specifying size in pt or px
Closes #67 and #23
See merge request GNOME/pango!391
Diffstat (limited to 'tests/markups')
-rw-r--r-- | tests/markups/fail-11.expected | 2 | ||||
-rw-r--r-- | tests/markups/fail-19.expected | 1 | ||||
-rw-r--r-- | tests/markups/fail-19.markup | 1 | ||||
-rw-r--r-- | tests/markups/valid-20.expected | 14 | ||||
-rw-r--r-- | tests/markups/valid-20.markup | 1 | ||||
-rw-r--r-- | tests/markups/valid-21.expected | 14 | ||||
-rw-r--r-- | tests/markups/valid-21.markup | 1 | ||||
-rw-r--r-- | tests/markups/valid-22.expected | 14 | ||||
-rw-r--r-- | tests/markups/valid-22.markup | 1 | ||||
-rw-r--r-- | tests/markups/valid-23.expected | 18 | ||||
-rw-r--r-- | tests/markups/valid-23.markup | 1 |
11 files changed, 65 insertions, 3 deletions
diff --git a/tests/markups/fail-11.expected b/tests/markups/fail-11.expected index 96cac741..4332ad5d 100644 --- a/tests/markups/fail-11.expected +++ b/tests/markups/fail-11.expected @@ -1 +1 @@ -ERROR: Value of 'rise' attribute on <span> tag on line 1 could not be parsed; should be an integer, not 'sky'
\ No newline at end of file +ERROR: Value of 'rise' attribute on <span> tag on line 1 could not be parsed; should be an integer, or a string such as '5.5pt', not 'sky'
\ No newline at end of file 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> diff --git a/tests/markups/valid-21.expected b/tests/markups/valid-21.expected new file mode 100644 index 00000000..9dc37dc1 --- /dev/null +++ b/tests/markups/valid-21.expected @@ -0,0 +1,14 @@ +test + + +--- + +range 0 4 +[0,4]rise=2560 +range 4 2147483647 + + +--- + +[0:4] (null) Normal +[4:2147483647] (null) Normal diff --git a/tests/markups/valid-21.markup b/tests/markups/valid-21.markup new file mode 100644 index 00000000..b448051b --- /dev/null +++ b/tests/markups/valid-21.markup @@ -0,0 +1 @@ +<span rise="2.5pt">test</span> diff --git a/tests/markups/valid-22.expected b/tests/markups/valid-22.expected new file mode 100644 index 00000000..194c1960 --- /dev/null +++ b/tests/markups/valid-22.expected @@ -0,0 +1,14 @@ +test + + +--- + +range 0 4 +[0,4]rise=-5000 +range 4 2147483647 + + +--- + +[0:4] (null) Normal +[4:2147483647] (null) Normal diff --git a/tests/markups/valid-22.markup b/tests/markups/valid-22.markup new file mode 100644 index 00000000..dd828041 --- /dev/null +++ b/tests/markups/valid-22.markup @@ -0,0 +1 @@ +<span rise="-5000">test</span> diff --git a/tests/markups/valid-23.expected b/tests/markups/valid-23.expected new file mode 100644 index 00000000..43621301 --- /dev/null +++ b/tests/markups/valid-23.expected @@ -0,0 +1,18 @@ +test test + + +--- + +range 0 5 +[0,9]font-desc=Cantarell 11 +range 5 9 +[0,9]font-desc=Cantarell 11 +[5,9]scale=2.000000 +range 9 2147483647 + + +--- + +[0:5] (null) Cantarell 11 +[5:9] (null) Cantarell 22 +[9:2147483647] (null) Cantarell 22 diff --git a/tests/markups/valid-23.markup b/tests/markups/valid-23.markup new file mode 100644 index 00000000..601fa7ee --- /dev/null +++ b/tests/markups/valid-23.markup @@ -0,0 +1 @@ +<span font="Cantarell 11">test <span size="200%">test</span></span> |