summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-12-28 12:39:54 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-12-29 07:47:58 -0500
commitff9e58940278c3c827940974bd752b3550923015 (patch)
tree4a06faef2f15294ccf3f9eca248a2f27dad2b394
parent054e21afae89b978fc3ba71548ad00374fe03169 (diff)
downloadgtk+-ff9e58940278c3c827940974bd752b3550923015.tar.gz
Add a css style test for font inheritance
-rw-r--r--testsuite/css/style/Makefile.am1
-rw-r--r--testsuite/css/style/label.css5
-rw-r--r--testsuite/css/style/label.nodes6
-rw-r--r--testsuite/css/style/label.ui19
4 files changed, 31 insertions, 0 deletions
diff --git a/testsuite/css/style/Makefile.am b/testsuite/css/style/Makefile.am
index 9f2542de3e..db48f79358 100644
--- a/testsuite/css/style/Makefile.am
+++ b/testsuite/css/style/Makefile.am
@@ -25,6 +25,7 @@ test_css_style_SOURCES = \
test-css-style.c
test_data = \
+ label.ui label.css label.nodes \
$(NULL)
EXTRA_DIST += $(test_in_files) $(test_data)
diff --git a/testsuite/css/style/label.css b/testsuite/css/style/label.css
new file mode 100644
index 0000000000..76b190df59
--- /dev/null
+++ b/testsuite/css/style/label.css
@@ -0,0 +1,5 @@
+@import "reset-to-defaults.css";
+
+box {
+ font: "Comic Sans";
+}
diff --git a/testsuite/css/style/label.nodes b/testsuite/css/style/label.nodes
new file mode 100644
index 0000000000..938e9297b6
--- /dev/null
+++ b/testsuite/css/style/label.nodes
@@ -0,0 +1,6 @@
+window visible=0 state=dir-ltr classes=background
+ decoration visible=1 state=dir-ltr
+ box visible=1 state=dir-ltr classes=horizontal
+ font-family: "\"Comic Sans\"" (label.css:4:20)
+ label visible=1 state=dir-ltr
+ font-family: "\"Comic Sans\"" (reset-to-defaults.css:2:12)
diff --git a/testsuite/css/style/label.ui b/testsuite/css/style/label.ui
new file mode 100644
index 0000000000..f1b397c08c
--- /dev/null
+++ b/testsuite/css/style/label.ui
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.0 -->
+ <object class="GtkWindow" id="window1">
+ <property name="can_focus">False</property>
+ <property name="type">popup</property>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Hello World!</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+</interface>