[gtk/font-families: 2/2] Add a reftest for multiple font families
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/font-families: 2/2] Add a reftest for multiple font families
- Date: Fri, 3 May 2019 01:45:13 +0000 (UTC)
commit 7037ff8f3db7cb272bc92eaf7226c90f49518182
Author: Matthias Clasen <mclasen redhat com>
Date: Fri May 3 01:33:09 2019 +0000
Add a reftest for multiple font families
This tests that listing multiple font
families in the css font-family property
works as expected.
testsuite/reftests/label-fonts.css | 3 +++
testsuite/reftests/label-fonts.ref.ui | 11 +++++++++++
testsuite/reftests/label-fonts.ui | 11 +++++++++++
testsuite/reftests/meson.build | 3 +++
4 files changed, 28 insertions(+)
---
diff --git a/testsuite/reftests/label-fonts.css b/testsuite/reftests/label-fonts.css
new file mode 100644
index 0000000000..aa44addd77
--- /dev/null
+++ b/testsuite/reftests/label-fonts.css
@@ -0,0 +1,3 @@
+* {
+ font-family: nonexisting,Sans;
+}
diff --git a/testsuite/reftests/label-fonts.ref.ui b/testsuite/reftests/label-fonts.ref.ui
new file mode 100644
index 0000000000..b00757eeb8
--- /dev/null
+++ b/testsuite/reftests/label-fonts.ref.ui
@@ -0,0 +1,11 @@
+<?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="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..b00757eeb8
--- /dev/null
+++ b/testsuite/reftests/label-fonts.ui
@@ -0,0 +1,11 @@
+<?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="label" translatable="yes">abcdefg</property>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/testsuite/reftests/meson.build b/testsuite/reftests/meson.build
index 9845b42e06..44dbc487e7 100644
--- a/testsuite/reftests/meson.build
+++ b/testsuite/reftests/meson.build
@@ -267,6 +267,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',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]