summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-03-24 08:24:45 -0400
committerMatthias Clasen <mclasen@redhat.com>2016-03-24 08:25:11 -0400
commita4ed154b037aaf03f8c166a711c326a030225eed (patch)
tree751f5676163bd1c0b963233a222734af0ed1f2d5 /testsuite
parent16dc164292dcc53a189e71679a8834be46f02068 (diff)
downloadgtk+-a4ed154b037aaf03f8c166a711c326a030225eed.tar.gz
add a css style test for font: smaller
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/css/style/Makefile.am1
-rw-r--r--testsuite/css/style/font.css7
-rw-r--r--testsuite/css/style/font.nodes12
-rw-r--r--testsuite/css/style/font.ui19
4 files changed, 39 insertions, 0 deletions
diff --git a/testsuite/css/style/Makefile.am b/testsuite/css/style/Makefile.am
index 86cdc1a348..bfdb22bad7 100644
--- a/testsuite/css/style/Makefile.am
+++ b/testsuite/css/style/Makefile.am
@@ -32,6 +32,7 @@ test_data = \
adjacent-states.ui adjacent-states.css adjacent-states.nodes \
colornames.ui colornames.css colornames.nodes \
currentcolor.ui currentcolor.css currentcolor.nodes \
+ font.ui font.css font.nodes \
gradient.ui gradient.css gradient.nodes \
inherit.ui inherit.css inherit.nodes \
label.ui label.css label.nodes \
diff --git a/testsuite/css/style/font.css b/testsuite/css/style/font.css
new file mode 100644
index 0000000000..86b2ba08b1
--- /dev/null
+++ b/testsuite/css/style/font.css
@@ -0,0 +1,7 @@
+box {
+ font: "Comic Sans 10";
+}
+
+label {
+ font: smaller;
+}
diff --git a/testsuite/css/style/font.nodes b/testsuite/css/style/font.nodes
new file mode 100644
index 0000000000..02044b4466
--- /dev/null
+++ b/testsuite/css/style/font.nodes
@@ -0,0 +1,12 @@
+[window.background:dir(ltr)]
+ decoration:dir(ltr)
+ box.horizontal:dir(ltr)
+ font-size: 10px; /* font.css:2:23 */
+ font-family: "\"Comic Sans 10\""; /* font.css:2:23 */
+ font-style: normal; /* font.css:2:23 */
+ font-variant: normal; /* font.css:2:23 */
+ font-weight: normal; /* font.css:2:23 */
+ font-stretch: normal; /* font.css:2:23 */
+
+ label:dir(ltr)
+ font-size: 8.3333333333333339px; /* font.css:6:20 */
diff --git a/testsuite/css/style/font.ui b/testsuite/css/style/font.ui
new file mode 100644
index 0000000000..f1b397c08c
--- /dev/null
+++ b/testsuite/css/style/font.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>