[gtk+/wip/matthiasc/node-dump: 9/12] Add a css style test for font inheritance



commit ff9e58940278c3c827940974bd752b3550923015
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Dec 28 12:39:54 2015 -0500

    Add a css style test for font inheritance

 testsuite/css/style/Makefile.am |    1 +
 testsuite/css/style/label.css   |    5 +++++
 testsuite/css/style/label.nodes |    6 ++++++
 testsuite/css/style/label.ui    |   19 +++++++++++++++++++
 4 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/css/style/Makefile.am b/testsuite/css/style/Makefile.am
index 9f2542d..db48f79 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 0000000..76b190d
--- /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 0000000..938e929
--- /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 0000000..f1b397c
--- /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>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]