diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-05-03 01:33:09 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-05-03 16:38:22 -0400 |
commit | 2957b86f725be1cc2704293511a199ef39f5369d (patch) | |
tree | 4b239e4947b973612295fd7253824bdfbf016813 /testsuite | |
parent | 4f9ea5e54ba294bf33f6cca87bfeab917e38bb16 (diff) | |
download | gtk+-2957b86f725be1cc2704293511a199ef39f5369d.tar.gz |
Add a reftest for multiple font families
This tests that listing multiple font
families in the css font-family property
works as expected.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/reftests/Makefile.am | 3 | ||||
-rw-r--r-- | testsuite/reftests/label-fonts.css | 7 | ||||
-rw-r--r-- | testsuite/reftests/label-fonts.ref.ui | 12 | ||||
-rw-r--r-- | testsuite/reftests/label-fonts.ui | 12 |
4 files changed, 34 insertions, 0 deletions
diff --git a/testsuite/reftests/Makefile.am b/testsuite/reftests/Makefile.am index 969c99527f..dda89a6471 100644 --- a/testsuite/reftests/Makefile.am +++ b/testsuite/reftests/Makefile.am @@ -321,6 +321,9 @@ testdata = \ label-ellipsize-small.ui \ label-ellipsize-with-big.ref.ui \ label-ellipsize-with-big.ui \ + label-fonts.css \ + label-fonts.ref.ui \ + label-fonts.ui \ label-shadows.css \ label-shadows.ref.ui \ label-shadows.ui \ diff --git a/testsuite/reftests/label-fonts.css b/testsuite/reftests/label-fonts.css new file mode 100644 index 0000000000..2a250e03ce --- /dev/null +++ b/testsuite/reftests/label-fonts.css @@ -0,0 +1,7 @@ +#label { + font-family: nonexisting,Sans; +} + +#reference { + font-family: Sans; +} diff --git a/testsuite/reftests/label-fonts.ref.ui b/testsuite/reftests/label-fonts.ref.ui new file mode 100644 index 0000000000..55a881b7c7 --- /dev/null +++ b/testsuite/reftests/label-fonts.ref.ui @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <object class="GtkWindow" id="window1"> + <property name="type">popup</property> + <child> + <object class="GtkLabel" id="label3"> + <property name="name">reference</property> + <property name="label" translatable="yes">abcdefg</property> + </object> + </child> + </object> +</interface> diff --git a/testsuite/reftests/label-fonts.ui b/testsuite/reftests/label-fonts.ui new file mode 100644 index 0000000000..a7d468885f --- /dev/null +++ b/testsuite/reftests/label-fonts.ui @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <object class="GtkWindow" id="window1"> + <property name="type">popup</property> + <child> + <object class="GtkLabel" id="label3"> + <property name="name">label</property> + <property name="label" translatable="yes">abcdefg</property> + </object> + </child> + </object> +</interface> |